@@ -126,20 +126,14 @@ async fn declare_deploy_scenario(
126126 DEPLOY_CONTRACT_FUNCTION_ENTRY_POINT_NAME ,
127127 & calldata,
128128 ) ;
129- let invoke_tx_args = invoke_tx_args ! {
130- sender_address: * FUNDED_ACCOUNT_ADDRESS ,
131- nonce: test_manager. next_nonce( * FUNDED_ACCOUNT_ADDRESS ) ,
132- calldata: deploy_contract_calldata,
133- resource_bounds: * NON_TRIVIAL_RESOURCE_BOUNDS ,
134- } ;
135129 let expected_contract_address = calculate_contract_address (
136130 contract_address_salt,
137131 class_hash,
138132 & Calldata ( constructor_calldata[ 1 ..] . to_vec ( ) . into ( ) ) ,
139133 * FUNDED_ACCOUNT_ADDRESS ,
140134 )
141135 . unwrap ( ) ;
142- test_manager. add_invoke_tx_from_args ( invoke_tx_args, & CHAIN_ID_FOR_TESTS ) ;
136+ test_manager. add_funded_account_invoke ( invoke_tx_args ! { calldata : deploy_contract_calldata } ) ;
143137 test_manager. divide_transactions_into_n_blocks ( n_blocks) ;
144138 let test_output = test_manager
145139 . execute_test_with_default_block_contexts ( & TestParameters {
@@ -198,23 +192,13 @@ async fn trivial_diff_scenario(
198192 let value = Felt :: from ( 11u8 ) ;
199193 let function_name = "test_storage_read_write" ;
200194 // Invoke a function on the test contract that changes the key to the new value.
201- let invoke_tx_args = invoke_tx_args ! {
202- sender_address: * FUNDED_ACCOUNT_ADDRESS ,
203- nonce: test_manager. next_nonce( * FUNDED_ACCOUNT_ADDRESS ) ,
204- calldata: create_calldata( test_contract_address, function_name, & [ key, value] ) ,
205- resource_bounds: * NON_TRIVIAL_RESOURCE_BOUNDS ,
206- } ;
207- test_manager. add_invoke_tx_from_args ( invoke_tx_args, & CHAIN_ID_FOR_TESTS ) ;
195+ let calldata = create_calldata ( test_contract_address, function_name, & [ key, value] ) ;
196+ test_manager. add_funded_account_invoke ( invoke_tx_args ! { calldata } ) ;
208197
209198 // Move to next block, and add an invoke that reverts the previous change.
210199 test_manager. move_to_next_block ( ) ;
211- let invoke_tx_args = invoke_tx_args ! {
212- sender_address: * FUNDED_ACCOUNT_ADDRESS ,
213- nonce: test_manager. next_nonce( * FUNDED_ACCOUNT_ADDRESS ) ,
214- calldata: create_calldata( test_contract_address, function_name, & [ key, Felt :: ZERO ] ) ,
215- resource_bounds: * NON_TRIVIAL_RESOURCE_BOUNDS ,
216- } ;
217- test_manager. add_invoke_tx_from_args ( invoke_tx_args, & CHAIN_ID_FOR_TESTS ) ;
200+ let calldata = create_calldata ( test_contract_address, function_name, & [ key, Felt :: ZERO ] ) ;
201+ test_manager. add_funded_account_invoke ( invoke_tx_args ! { calldata } ) ;
218202
219203 // Execute the test.
220204 let test_output = test_manager
0 commit comments