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

Extend the "TraceCall" API so that the state override can be support #22197

Closed
rjl493456442 opened this issue Jan 20, 2021 · 4 comments · Fixed by #22245
Closed

Extend the "TraceCall" API so that the state override can be support #22197

rjl493456442 opened this issue Jan 20, 2021 · 4 comments · Fixed by #22245
Assignees
Milestone

Comments

@rjl493456442
Copy link
Member

rjl493456442 commented Jan 20, 2021

Now the eth_callAPI can accept an optional parameter overrides *map[common.Address]account so that the user can customize the states by himself. Would be nice to include this feature in the tracer API too.

@holiman
Copy link
Contributor

holiman commented Jan 21, 2021

Triage discussion: this can be added without making a breaking change, by adding a new field to the input config for that particular call.

@huahuayu
Copy link
Contributor

Now the eth_callAPI can accept an optional parameter overrides *map[common.Address]account so that the user can customize the states by himself. Would be nice to include this feature in the tracer API too.

hi @rjl493456442 although the feature is been added, could you explain what's the typical use case, could you make an example?

@attente
Copy link

attente commented Jun 29, 2021

Is there a way to make this functionality accessible on the ethclient.Client interface?

@attente
Copy link

attente commented Jun 29, 2021

Hi, this is my first attempt to contribute to go-ethereum: #23129. It exposes an interface on ethclient.Client to allow account state overrides when performing eth_call. Comments and critique would be much appreciated!

attente added a commit to attente/go-ethereum that referenced this issue Jun 29, 2021
This publishes the previously internal ethapi.StateOverrides type as
well as adds the methods CallContractWithOverrides and
PendingCallContractWithOverrides to ethclient.Client.

ethereum#22197
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants