File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -203,7 +203,7 @@ fn test_evm_staticcall() {
203
203
ContractParams ( params. to_vec ( ) ) ,
204
204
)
205
205
. unwrap ( ) ;
206
- assert ! ( ! call_result. code. is_success ( ) , "static call mutation succeeded " ) ;
206
+ assert_eq ! ( call_result. code. value ( ) , 33 , "static call mutation did not revert " ) ;
207
207
}
208
208
209
209
// A -> staticcall -> B -> call -> C (read) OK
@@ -256,7 +256,7 @@ fn test_evm_staticcall() {
256
256
ContractParams ( params. to_vec ( ) ) ,
257
257
)
258
258
. unwrap ( ) ;
259
- assert ! ( ! call_result. code. is_success ( ) , "static call mutation succeeded" , ) ;
259
+ assert_eq ! ( call_result. code. value ( ) , 33 , "static call mutation did not revert" ) ;
260
260
}
261
261
}
262
262
@@ -470,6 +470,6 @@ fn test_evm_staticcall_delegatecall() {
470
470
ContractParams ( params. to_vec ( ) ) ,
471
471
)
472
472
. unwrap ( ) ;
473
- assert ! ( ! call_result. code. is_success ( ) , "static call mutation succeeded" , ) ;
473
+ assert_eq ! ( call_result. code. value ( ) , 33 , "static call mutation did not revert" ) ;
474
474
}
475
475
}
You can’t perform that action at this time.
0 commit comments