-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
feat(cheatcodes
): include trace information about setting account code in EIP7702 transaction
#9800
Comments
Definitively in support of adding this, good idea cc @evchip |
cheatcodes
): include trace information about setting account code in EIP7702 transaction
Thanks @tinchoabbate, I'll look into this. |
@tinchoabbate thanks for reporting this. You're right that the delegation code write isn't visible in traces because we currently write directly to state rather than executing through the EVM. @zerosnacks I propose we modify Happy to implement this if the approach sounds reasonable. Let me know if you'd prefer a different solution. |
I’ve been working at this for a while but still haven’t been able to get What I’ve tried so far:
It seems like the best approach would be to push a new transaction into the stack when I would appreciate some direction cc @zerosnacks. Thanks |
Component
Forge
Describe the feature you would like
In a forge test that uses the
vm.signAndAttachDelegation
(orvm.attachDelegation
) cheatcode, it'd be helpful if the test's trace somehow showed the account's code being set. Right now the process is opaque for the devs, and it's unclear whether the account's code was updated or not.For example, right now if I do:
Then the trace shows:
But there's nothing in the call to address(0) that signals the call has 7702 data attached and that it's setting code to an account.
Additional context
No response
The text was updated successfully, but these errors were encountered: