Use provider method in tests

This commit is contained in:
Omar Abdulla
2025-07-14 22:33:09 +03:00
parent 8f80b1da8a
commit fa4bbbb987
+1 -6
View File
@@ -983,12 +983,7 @@ mod tests {
node.spawn(GENESIS_JSON.to_owned())
.expect("Failed to spawn the node");
let provider = ProviderBuilder::new()
.network::<KitchenSinkNetwork>()
.wallet(args.wallet())
.connect(&node.rpc_url)
.await
.expect("Failed to create provider");
let provider = node.provider().await.expect("Failed to create provider");
let account_address = args.wallet().default_signer().address();
let transaction = TransactionRequest::default()