mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-11 02:03:07 +00:00
Fix kexit_info in test
This commit is contained in:
parent
15a9e9928a
commit
7447959fad
@ -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];
|
||||
|
||||
@ -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()?;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user