Skip to content

Commit 2be129b

Browse files
authored
core/vm: rename opSuicide to opSelfdestruct (ethereum#24022)
The opcode was renamed in the codebase in 2017, but the functions were kept unchanged.
1 parent 9393d1f commit 2be129b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/vm/instructions.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,7 @@ func opStop(pc *uint64, interpreter *EVMInterpreter, scope *ScopeContext) ([]byt
805805
return nil, errStopToken
806806
}
807807

808-
func opSuicide(pc *uint64, interpreter *EVMInterpreter, scope *ScopeContext) ([]byte, error) {
808+
func opSelfdestruct(pc *uint64, interpreter *EVMInterpreter, scope *ScopeContext) ([]byte, error) {
809809
if interpreter.readOnly {
810810
return nil, ErrWriteProtection
811811
}

core/vm/jump_table.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -996,7 +996,7 @@ func newFrontierInstructionSet() JumpTable {
996996
memorySize: memoryReturn,
997997
},
998998
SELFDESTRUCT: {
999-
execute: opSuicide,
999+
execute: opSelfdestruct,
10001000
dynamicGas: gasSelfdestruct,
10011001
minStack: minStack(1, 0),
10021002
maxStack: maxStack(1, 0),

0 commit comments

Comments
 (0)