@@ -25,13 +25,12 @@ async fn test_adder_deploy_add_get_sum() {
2525
2626 let sc_meta_bin = env ! ( "CARGO_BIN_EXE_sc-meta" ) ;
2727
28- let mut interactor = Interactor :: new ( CHAIN_SIMULATOR_URL )
28+ let interactor = Interactor :: new ( CHAIN_SIMULATOR_URL )
2929 . await
3030 . use_chain_simulator ( true ) ;
3131
32- let wallet_address = interactor
33- . register_wallet ( Wallet :: from_pem_file ( & wallet_pem_path) . unwrap ( ) )
34- . await ;
32+ let wallet = Wallet :: from_pem_file ( & wallet_pem_path) . unwrap ( ) ;
33+ let wallet_address = wallet. to_address ( ) ;
3534
3635 interactor
3736 . send_user_funds ( & wallet_address. to_bech32_default ( ) )
@@ -143,14 +142,20 @@ async fn test_egld_transfer_alice_to_bob() {
143142 let alice_pem_path = workspace. join ( "framework/meta/tests/alice.pem" ) ;
144143
145144 // Connect to the chain simulator.
146- let mut interactor = Interactor :: new ( CHAIN_SIMULATOR_URL )
145+ let interactor = Interactor :: new ( CHAIN_SIMULATOR_URL )
147146 . await
148147 . use_chain_simulator ( true ) ;
149148
150149 // Register wallets – `register_wallet` automatically funds each account via
151150 // the chain simulator's `send_user_funds` endpoint.
152- let alice_address = interactor. register_wallet ( test_wallets:: alice ( ) ) . await ;
153- let bob_address = interactor. register_wallet ( test_wallets:: bob ( ) ) . await ;
151+ let alice_address = test_wallets:: alice ( ) . to_address ( ) ;
152+ let bob_address = test_wallets:: bob ( ) . to_address ( ) ;
153+
154+ // fund alice
155+ interactor
156+ . send_user_funds ( & alice_address. to_bech32_default ( ) )
157+ . await
158+ . unwrap ( ) ;
154159
155160 // Allow the funding transactions to settle.
156161 interactor. generate_blocks ( 10 ) . await . unwrap ( ) ;
0 commit comments