Skip to content

Conversation

@ChristopherDedominici
Copy link
Contributor

Issue

The default addresses are EIP-7702 delegated. We fixed this in V3 by zeroing the code of those accounts when starting the network. It's unclear why this works in HH3 but not in the alpha, since both use the same version of EDR and the code that instantiates the network is similar enough.

Fix

Use same approach as in V3:

code: new Uint8Array(), // Empty account code, removing potential delegation code when forking

@ChristopherDedominici ChristopherDedominici self-assigned this Oct 29, 2025
@ChristopherDedominici ChristopherDedominici added the no changeset needed This PR doesn't require a changeset label Oct 29, 2025
@github-project-automation github-project-automation bot moved this to Backlog in Hardhat Oct 29, 2025
@changeset-bot
Copy link

changeset-bot bot commented Oct 29, 2025

⚠️ No Changeset found

Latest commit: 4fe267d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@ChristopherDedominici ChristopherDedominici marked this pull request as ready for review October 29, 2025 15:47
@ChristopherDedominici ChristopherDedominici moved this from Backlog to In Review in Hardhat Oct 29, 2025
Copy link
Member

@Wodann Wodann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@ChristopherDedominici ChristopherDedominici merged commit a9e020c into feat/multichain Oct 30, 2025
172 checks passed
@ChristopherDedominici ChristopherDedominici deleted the feat/multichain-bug-fix branch October 30, 2025 09:46
@github-project-automation github-project-automation bot moved this from In Review to Done in Hardhat Oct 30, 2025
kanej pushed a commit that referenced this pull request Nov 6, 2025
Update the version of EDR to the same version used in Hardhat 3.

* build: upgrade to @NomicFoundation/edr v0.12.0-next.7
* set 0x to account code (#7633)

---------

Co-authored-by: Michal Brabec <[email protected]>
Co-authored-by: Christopher Dedominici <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no changeset needed This PR doesn't require a changeset

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants