-
Notifications
You must be signed in to change notification settings - Fork 20.6k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
internal/ethapi: don't query wallets at every execution of gas estimation #20261
Conversation
Could you do the same pls in account/abi/bind/backends/simulated.go? |
Also pls fix the commit msg typos |
Why are we auto-setting the sender address at all? |
Legacy API behavior, use account[0] if unset. |
I'd be happy to start rejecting this behavior, but that's a breaking enough change IMHO to warrant a major Geth version bump (as in 1.10) |
Afaict, that one doesn't use the accounts. It takes an |
2a42927
to
51c3290
Compare
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.
LGTM
A user ( @sarvesh-ost ) reported that doing
estimateGas
with clef as a backend caused it to prompt for approval 26 times.This PR changes the gas estimator so it resolves the address to use only once, not once for each execution.
@sarvesh-ost , could you please check if this solves the issue?