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() {
203203 ContractParams ( params. to_vec ( ) ) ,
204204 )
205205 . 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 " ) ;
207207 }
208208
209209 // A -> staticcall -> B -> call -> C (read) OK
@@ -256,7 +256,7 @@ fn test_evm_staticcall() {
256256 ContractParams ( params. to_vec ( ) ) ,
257257 )
258258 . 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" ) ;
260260 }
261261}
262262
@@ -470,6 +470,6 @@ fn test_evm_staticcall_delegatecall() {
470470 ContractParams ( params. to_vec ( ) ) ,
471471 )
472472 . 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" ) ;
474474 }
475475}
You can’t perform that action at this time.
0 commit comments