eth/tracers/native: replace instances of suicide with selfdestruct #27716 (#1340)

This commit is contained in:
Daniel Liu 2025-09-09 15:33:16 +08:00 committed by GitHub
parent b0e3d4118c
commit e4d4fb7d9c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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{