Skip to content

Commit

Permalink
Byzantium staticcall
Browse files Browse the repository at this point in the history
  • Loading branch information
lima-limon-inc committed Feb 14, 2025
1 parent 61721a7 commit a4b358b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/vm/levm/src/opcode_handlers/system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,10 @@ impl VM {
&mut self,
current_call_frame: &mut CallFrame,
) -> Result<OpcodeResult, VMError> {
// https://eips.ethereum.org/EIPS/eip-214
if self.env.config.fork < Fork::Byzantium {
return Err(VMError::InvalidOpcode);
};
// STACK
let gas = current_call_frame.stack.pop()?;
let code_address = word_to_address(current_call_frame.stack.pop()?);
Expand Down

0 comments on commit a4b358b

Please sign in to comment.