This commit is contained in:
wborgeaud 2022-07-07 18:20:24 +02:00
parent 9c4947e0f0
commit 267f4162dd

View File

@ -12,7 +12,8 @@ pub fn run(code: &[u8], initial_offset: usize, initial_stack: Vec<U256>) -> Vec<
offset: initial_offset,
stack: initial_stack,
};
while interpreter.offset < interpreter.code.len() {
// Halt the execution if a jump to 0xdeadbeef was done.
while interpreter.offset != 0xdeadbeef {
interpreter.run_opcode();
}
interpreter.stack