Skip to content

Conversation

jwasinger
Copy link
Contributor

@jwasinger jwasinger commented Oct 15, 2025

There's two 7702 edge-cases where we will set code of an account when it did not actually change:

  • clearing a 7702 delegation on an account that wasn't previously delegated
  • re-delegating to the same contract that was previously-delegated to.

The motivation behind this PR is mainly that I think tracing code change hooks should only be invoked if there is an actual code change.

… account that wasn't previously delegated, re-delegating to the same contract that was previously-delegated.
@jwasinger jwasinger requested review from lightclient and s1na October 15, 2025 08:13
@s1na
Copy link
Contributor

s1na commented Oct 15, 2025

The motivation behind this PR is mainly that I think tracing code change hooks should only be invoked if there is an actual code change.

Makes sense, what about avoiding the hook invocation directly at SetCode?

@jwasinger
Copy link
Contributor Author

That's one option. it just feels a bit cleaner to do it this way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants