Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eth/tracers: add golang 4byte tracer #23882

Merged
merged 5 commits into from
Nov 11, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
goimports
  • Loading branch information
wardbradt committed Nov 10, 2021
commit a2763283b43b248f01c98cdc2dbc7499163547a4
9 changes: 5 additions & 4 deletions eth/tracers/native/4byte.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,14 @@ package native

import (
"encoding/json"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/vm"
"github.com/ethereum/go-ethereum/eth/tracers"
"math/big"
"strconv"
"sync/atomic"
"time"

"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/vm"
"github.com/ethereum/go-ethereum/eth/tracers"
)

func init() {
Expand Down Expand Up @@ -104,7 +105,7 @@ func (t *fourByteTracer) CaptureEnter(typ vm.OpCode, from common.Address, to com
}
if len(input) < 4 {
return
}
}
// Skip any pre-compile invocations, those are just fancy opcodes
if t.isPrecompiled(to) {
return
Expand Down