Function fuels_test_helpers::setup_test_provider
source · pub async fn setup_test_provider(
coins: Vec<Coin>,
messages: Vec<Message>,
node_config: Option<Config>,
chain_config: Option<ChainConfig>
) -> (Provider, SocketAddr)
Expand description
Setup a test provider with the given coins. We return the SocketAddr so the launched node client can be connected to more easily (even though it is often ignored).
Examples
use fuels_test_helpers::setup_test_provider;
async fn test_provider() -> Result<(), Box<dyn std::error::Error>> {
let (_provider, _address) = setup_test_provider(vec![], vec![], None, None).await;
Ok(())
}