Skip to content

Commit 1501f44

Browse files
committed
callvariants is also testing mutation
1 parent 43ba321 commit 1501f44

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test_vm/tests/evm_test.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)