core/vm: rename opSuicide to opSelfdestruct (#24022)

The opcode was renamed in the codebase in 2017, but the functions were kept unchanged.
MariusVanDerWijden-patch-1
Alex Beregszaszi 3 years ago committed by GitHub
parent 9393d1fb5d
commit 2be129b5cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      core/vm/instructions.go
  2. 2
      core/vm/jump_table.go

@ -805,7 +805,7 @@ func opStop(pc *uint64, interpreter *EVMInterpreter, scope *ScopeContext) ([]byt
return nil, errStopToken
}
func opSuicide(pc *uint64, interpreter *EVMInterpreter, scope *ScopeContext) ([]byte, error) {
func opSelfdestruct(pc *uint64, interpreter *EVMInterpreter, scope *ScopeContext) ([]byte, error) {
if interpreter.readOnly {
return nil, ErrWriteProtection
}

@ -996,7 +996,7 @@ func newFrontierInstructionSet() JumpTable {
memorySize: memoryReturn,
},
SELFDESTRUCT: {
execute: opSuicide,
execute: opSelfdestruct,
dynamicGas: gasSelfdestruct,
minStack: minStack(1, 0),
maxStack: maxStack(1, 0),

Loading…
Cancel
Save