Skip to content

Commit

Permalink
Update eth/tracers/native/call_flat.go
Browse files Browse the repository at this point in the history
Co-authored-by: HAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com>
  • Loading branch information
draganm and HAOYUatHZ committed Aug 8, 2024
1 parent 5da978e commit e22cfb0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions eth/tracers/native/call_flat.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,12 +151,12 @@ func (t *flatCallTracer) GetResult() (json.RawMessage, error) {

func flatFromNested(input *callFrame, traceAddress []int, convertErrs bool, ctx *tracers.Context) (output []flatCallFrame, err error) {
var frame *flatCallFrame
switch input.Type {
case vm.CREATE.String(), vm.CREATE2.String():
switch vm.StringToOp(input.Type) {
case vm.CREATE, vm.CREATE2:
frame = newFlatCreate(input)
case vm.SELFDESTRUCT.String():
case vm.SELFDESTRUCT:
frame = newFlatSuicide(input)
case vm.CALL.String(), vm.STATICCALL.String(), vm.CALLCODE.String(), vm.DELEGATECALL.String():
case vm.CALL, vm.STATICCALL, vm.CALLCODE, vm.DELEGATECALL:
frame = newFlatCall(input)
default:
return nil, fmt.Errorf("unrecognized call frame type: %s", input.Type)
Expand Down

0 comments on commit e22cfb0

Please sign in to comment.