@@ -38,6 +38,7 @@ impl MockCallTrait for TestEnvironment {
38
38
self . cheatnet_state . mock_call (
39
39
* contract_address,
40
40
function_selector. into_ ( ) ,
41
+ None ,
41
42
& ret_data,
42
43
span,
43
44
) ;
@@ -46,7 +47,7 @@ impl MockCallTrait for TestEnvironment {
46
47
fn stop_mock_call ( & mut self , contract_address : & ContractAddress , function_name : & str ) {
47
48
let function_selector = get_selector_from_name ( function_name) . unwrap ( ) ;
48
49
self . cheatnet_state
49
- . stop_mock_call ( * contract_address, function_selector. into_ ( ) ) ;
50
+ . stop_mock_call ( * contract_address, function_selector. into_ ( ) , None ) ;
50
51
}
51
52
}
52
53
@@ -115,7 +116,7 @@ fn mock_call_stop() {
115
116
116
117
assert_success ( output, & ret_data) ;
117
118
118
- cheatnet_state. stop_mock_call ( contract_address, felt_selector_from_name ( "get_thing" ) ) ;
119
+ cheatnet_state. stop_mock_call ( contract_address, felt_selector_from_name ( "get_thing" ) , None ) ;
119
120
120
121
let output = call_contract (
121
122
& mut cached_state,
@@ -142,7 +143,7 @@ fn mock_call_stop_no_start() {
142
143
143
144
let selector = felt_selector_from_name ( "get_thing" ) ;
144
145
145
- cheatnet_state. stop_mock_call ( contract_address, felt_selector_from_name ( "get_thing" ) ) ;
146
+ cheatnet_state. stop_mock_call ( contract_address, felt_selector_from_name ( "get_thing" ) , None ) ;
146
147
147
148
let output = call_contract (
148
149
& mut cached_state,
@@ -185,7 +186,7 @@ fn mock_call_double() {
185
186
186
187
assert_success ( output, & ret_data) ;
187
188
188
- cheatnet_state. stop_mock_call ( contract_address, selector) ;
189
+ cheatnet_state. stop_mock_call ( contract_address, selector, None ) ;
189
190
190
191
let output = call_contract (
191
192
& mut cached_state,
0 commit comments