diff --git a/crates/interpreter/src/instructions/contract.rs b/crates/interpreter/src/instructions/contract.rs index c0cc0cf0bd..9e2cd81d2c 100644 --- a/crates/interpreter/src/instructions/contract.rs +++ b/crates/interpreter/src/instructions/contract.rs @@ -234,7 +234,7 @@ pub fn extcall(interpreter: &mut Interpreter, host interpreter.instruction_result = InstructionResult::CallOrCreate; } -pub fn extdcall(interpreter: &mut Interpreter, host: &mut H) { +pub fn extdelegatecall(interpreter: &mut Interpreter, host: &mut H) { require_eof!(interpreter); pop_address!(interpreter, target_address); @@ -267,7 +267,7 @@ pub fn extdcall(interpreter: &mut Interpreter, hos interpreter.instruction_result = InstructionResult::CallOrCreate; } -pub fn extscall(interpreter: &mut Interpreter, host: &mut H) { +pub fn extstaticcall(interpreter: &mut Interpreter, host: &mut H) { require_eof!(interpreter); pop_address!(interpreter, target_address); diff --git a/crates/interpreter/src/opcode.rs b/crates/interpreter/src/opcode.rs index 1bed9cb415..28483a1a9f 100644 --- a/crates/interpreter/src/opcode.rs +++ b/crates/interpreter/src/opcode.rs @@ -769,11 +769,11 @@ opcodes! { 0xF4 => DELEGATECALL => contract::delegate_call:: => stack_io(6, 1), not_eof; 0xF5 => CREATE2 => contract::create:: => stack_io(4, 1), not_eof; // 0xF6 - 0xF7 => RETURNDATALOAD => system::returndataload => stack_io(1, 1); - 0xF8 => EXTCALL => contract::extcall:: => stack_io(4, 1); - 0xF9 => EXFCALL => contract::extdcall:: => stack_io(3, 1); - 0xFA => STATICCALL => contract::static_call:: => stack_io(6, 1), not_eof; - 0xFB => EXTSCALL => contract::extscall => stack_io(3, 1); + 0xF7 => RETURNDATALOAD => system::returndataload => stack_io(1, 1); + 0xF8 => EXTCALL => contract::extcall:: => stack_io(4, 1); + 0xF9 => EXTDELEGATECALL => contract::extdelegatecall:: => stack_io(3, 1); + 0xFA => STATICCALL => contract::static_call:: => stack_io(6, 1), not_eof; + 0xFB => EXTSTATICCALL => contract::extstaticcall => stack_io(3, 1); // 0xFC 0xFD => REVERT => control::revert:: => stack_io(2, 0), terminating; 0xFE => INVALID => control::invalid => stack_io(0, 0), terminating;