Skip to content

Commit

Permalink
add-sendall-to-last-opcode-execution (#1092)
Browse files Browse the repository at this point in the history
  • Loading branch information
kstoykov authored Sep 3, 2024
1 parent 1b31cfa commit c51beca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/vm/instructions_zkevm.go
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,10 @@ func opReturn_lastOpCode(pc *uint64, interpreter *EVMInterpreter, scope *ScopeCo
return nil, nil
}

func opUndefined_lastOpCode(pc *uint64, interpreter *EVMInterpreter, scope *ScopeContext) ([]byte, error) {
return nil, nil
}

func opSload_lastOpCode(pc *uint64, interpreter *EVMInterpreter, scope *ScopeContext) ([]byte, error) {
loc := scope.Stack.Peek()
interpreter.hasherBuf = loc.Bytes32()
Expand Down
1 change: 1 addition & 0 deletions core/vm/jump_table_zkevm.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ func overrideJumpTableForLastOpcodeForkId12(jt *JumpTable) {
jt[CREATE].execute = opCreate_zkevm_lastOpCode
jt[RETURN].execute = opReturn_lastOpCode
jt[CREATE2].execute = opCreate2_zkevm_lastOpCode
jt[SENDALL].execute = opUndefined_lastOpCode
jt[SLOAD].execute = opSload_lastOpCode
jt[SSTORE].execute = opSstore_lastOpCode
}

0 comments on commit c51beca

Please sign in to comment.