-
Notifications
You must be signed in to change notification settings - Fork 20.9k
ethclient: allow passing AuthorizationList to calls #31198
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
ethclient: allow passing AuthorizationList to calls #31198
Conversation
We have been discussing this. At the moment, it doesn't feel very useful since you need a signed authorization in order to invoke the call. It's not super convenient. And it's not really necessary to override an account with code via EIP-7702 in |
aha. I see and thanks. IMHO the main intention for this PR is not to overwrite accounts but to return an accurate gas estimation. e.g. bundlers may need to estimate gas (if the bundle transactions have some delegation submissions. I learned this from here. Though they might be written in other languages, too). In the meantime, it doesn't make it worse to support btw, do you think the added unit tests are useful here? might tweak some if duplicated. |
I think it's an useful feature |
What's the status here? This is useful to have - we've resorted to a shim above |
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
Renamed the field to |
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
This PR adds the `AuthorizationList` field to the `CallMsg` interface to support `eth_call` and `eth_estimateGas` of set-code transactions. --------- Co-authored-by: Sina Mahmoodi <[email protected]>
This PR adds the `AuthorizationList` field to the `CallMsg` interface to support `eth_call` and `eth_estimateGas` of set-code transactions. --------- Co-authored-by: Sina Mahmoodi <[email protected]>
…thereum#3048) This PR adds the `AuthorizationList` field to the `CallMsg` interface to support `eth_call` and `eth_estimateGas` of set-code transactions. --------- Co-authored-by: colin <[email protected]> Co-authored-by: Sina Mahmoodi <[email protected]>
This PR adds the
AuthList
field intoCallArg
to supporteth_call
andeth_estimateGas
ofSetCodeTx
.Some unit tests are added in this PR (containing uncovered cases, e.g.,
ErrSetCodeTxCreate
).