pub async fn launch_provider_and_get_wallet() -> WalletUnlocked
Expand description
Launches a local Fuel node, instantiates a provider, and returns a wallet.
The provider and the wallets are instantiated with the default configs.
For more configurable options, see the launch_custom_provider_and_get_wallets
function.
Examples
use fuels_test_helpers::launch_provider_and_get_wallet;
use fuels_signers::Signer;
async fn single_wallet() -> Result<(), Box<dyn std::error::Error>> {
let wallet = launch_provider_and_get_wallet().await;
dbg!(wallet.address());
Ok(())
}