pub async fn launch_provider_and_get_wallet() -> Result<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;
async fn single_wallet() -> Result<(), Box<dyn std::error::Error>> {
let wallet = launch_provider_and_get_wallet().await?;
dbg!(wallet.address());
Ok(())
}