Skip to content

Commit

Permalink
fix tests except one that seems to rely on hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
joonazan committed Oct 28, 2024
1 parent 00fbc86 commit cc5067f
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 9 deletions.
2 changes: 0 additions & 2 deletions crates/vm2/benches/nested_near_call.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ fn nested_near_call(bencher: Bencher) {
Settings {
default_aa_code_hash: [0; 32],
evm_interpreter_code_hash: [0; 32],
hook_address: 0,
},
);

Expand Down Expand Up @@ -84,7 +83,6 @@ fn nested_near_call_with_storage_write(bencher: Bencher) {
Settings {
default_aa_code_hash: [0; 32],
evm_interpreter_code_hash: [0; 32],
hook_address: 0,
},
);

Expand Down
3 changes: 1 addition & 2 deletions crates/vm2/src/tests/bytecode_behaviour.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ fn call_to_invalid_address() {

let address = Address::from_low_u64_be(0x_1234_5678_90ab_cdef);
let bytecode = include_bytes!("bytecodes/call_far");
let mut world = TestWorld::new(&[(address, Program::new(bytecode, false))]);
let mut world = TestWorld::new(&[(address, Program::new(bytecode))]);
let program = initial_decommit(&mut world, address);

let mut vm = VirtualMachine::new(
Expand All @@ -26,7 +26,6 @@ fn call_to_invalid_address() {
Settings {
default_aa_code_hash: [0; 32],
evm_interpreter_code_hash: [0; 32],
hook_address: 0,
},
);
assert!(matches!(
Expand Down
2 changes: 0 additions & 2 deletions crates/vm2/src/tests/far_call_decommitment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ fn test() {
Settings {
default_aa_code_hash: [0; 32],
evm_interpreter_code_hash: [0; 32],
hook_address: 0,
},
);

Expand Down Expand Up @@ -161,7 +160,6 @@ fn test_with_initial_out_of_gas_error() {
Settings {
default_aa_code_hash: [0; 32],
evm_interpreter_code_hash: [0; 32],
hook_address: 0,
},
);

Expand Down
1 change: 0 additions & 1 deletion crates/vm2/src/tests/panic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ proptest! {
Settings {
default_aa_code_hash: [0; 32],
evm_interpreter_code_hash: [0; 32],
hook_address: 0,
},
);

Expand Down
1 change: 0 additions & 1 deletion crates/vm2/src/tests/stipend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ fn test_scenario(gas_to_pass: u32) -> (ExecutionEnd, u32) {
Settings {
default_aa_code_hash: [0; 32],
evm_interpreter_code_hash: interpreter_hash,
hook_address: 0,
},
);

Expand Down
1 change: 0 additions & 1 deletion crates/vm2/src/tracing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,6 @@ mod test {
crate::Settings {
default_aa_code_hash: [0; 32],
evm_interpreter_code_hash: [0; 32],
hook_address: 0,
},
);

Expand Down

0 comments on commit cc5067f

Please sign in to comment.