core: replace instances of 'suicide' with 'selfdestruct' to improve code consistency. (#27716)
--------- Co-authored-by: Martin Holst Swende <martin@swende.se> Co-authored-by: lightclient <14004106+lightclient@users.noreply.github.com>
This commit is contained in:
co-authored by
Martin Holst Swende
lightclient
parent
00408f7479
commit
d233b6b23a
@@ -248,7 +248,7 @@ func flatFromNested(input *callFrame, traceAddress []int, convertErrs bool, ctx
|
||||
case vm.CREATE, vm.CREATE2:
|
||||
frame = newFlatCreate(input)
|
||||
case vm.SELFDESTRUCT:
|
||||
frame = newFlatSuicide(input)
|
||||
frame = newFlatSelfdestruct(input)
|
||||
case vm.CALL, vm.STATICCALL, vm.CALLCODE, vm.DELEGATECALL:
|
||||
frame = newFlatCall(input)
|
||||
default:
|
||||
@@ -330,7 +330,7 @@ func newFlatCall(input *callFrame) *flatCallFrame {
|
||||
}
|
||||
}
|
||||
|
||||
func newFlatSuicide(input *callFrame) *flatCallFrame {
|
||||
func newFlatSelfdestruct(input *callFrame) *flatCallFrame {
|
||||
return &flatCallFrame{
|
||||
Type: "suicide",
|
||||
Action: flatCallAction{
|
||||
|
||||
Reference in New Issue
Block a user