Skip to content

Commit

Permalink
Fix kexit_info in test
Browse files Browse the repository at this point in the history
  • Loading branch information
Nashtare committed Oct 27, 2023
1 parent 15a9e99 commit 7447959
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion evm/src/cpu/kernel/interpreter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1127,7 +1127,6 @@ impl<'a> Interpreter<'a> {
}

fn run_exit_kernel(&mut self) {
let _dummy = self.pop(); // not sure why we need this extra pop on the interpreter
let kexit_info = self.pop();

let kexit_info_u64 = kexit_info.0[0];
Expand Down
3 changes: 1 addition & 2 deletions evm/src/cpu/kernel/tests/account_code.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,12 +169,11 @@ fn test_extcodecopy() -> Result<()> {
interpreter.generation_state.registers.program_counter = extcodecopy;
interpreter.pop();
assert!(interpreter.stack().is_empty());
interpreter.push(0xDEADBEEFu32.into());
interpreter.push(size.into());
interpreter.push(offset.into());
interpreter.push(dest_offset.into());
interpreter.push(U256::from_big_endian(address.as_bytes()));
interpreter.push(0.into()); // kexit_info
interpreter.push(0xDEADBEEFu32.into()); // kexit_info
interpreter.generation_state.inputs.contract_code =
HashMap::from([(keccak(&code), code.clone())]);
interpreter.run()?;
Expand Down

0 comments on commit 7447959

Please sign in to comment.