-
Notifications
You must be signed in to change notification settings - Fork 20.1k
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/tracer: extend call tracer #22245
Conversation
var traceConfig *TraceConfig | ||
if config != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had to think a while to figure out why this is needed. So essentially, you do this to clear out the StateOverrides
, so it doesn't get applied a second time later on?
If that's the case, why not just set it to nil
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because api.traceTx
only accepts the TraceConfig
, while TraceCall
use the TraceCallConfig
. Here just do the parameter conversion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One question, but generally LGTM. Haven't tested it
eth/tracers: fix testing eth, internal: add tests internal: fix imports eth/traces: handle invalid block parameter eth/tracers: fix json field conflict
2d2e3f3
to
938da9d
Compare
Rebased the PR |
Adds an an optional parameter `overrides *map[common.Address]account` to the `eth_call` API in order for the caller to can customize the state.
This adds support for state overrides when tracing calls.
Fixes #22197
TODO