Skip to content

feat: deploy BackwardsCompatible4337Account in Deploy script#27

Merged
chunter-cb merged 1 commit into
mainfrom
add-4337-account-to-deploy
Jul 8, 2026
Merged

feat: deploy BackwardsCompatible4337Account in Deploy script#27
chunter-cb merged 1 commit into
mainfrom
add-4337-account-to-deploy

Conversation

@chunter-cb

Copy link
Copy Markdown
Collaborator

Summary

  • Adds BackwardsCompatible4337Account as a fourth deployed singleton in script/Deploy.s.sol, alongside DefaultAccount, DefaultHighRateAccount, and UpgradeableAccount, so it has a canonical deployed implementation address for callers who opt into ERC-4337/bundler support.
  • Updates the script's addresses()/run() logging and doc comments, and the README's contracts table, to reflect that it's now deployed by default (though neither of the other deployed accounts depends on it).

Test plan

  • forge build compiles cleanly
  • forge fmt --check passes
  • forge script script/Deploy.s.sol --sig "addresses()" previews all 4 account addresses plus authenticators
  • forge test — 207 tests passing

Adds the opt-in ERC-4337 example account as a fourth deployed
singleton alongside DefaultAccount, DefaultHighRateAccount, and
UpgradeableAccount, so callers who need bundler/EntryPoint support
have a canonical deployed implementation to point at.
@chunter-cb chunter-cb merged commit 9c37e50 into main Jul 8, 2026
4 checks passed
chunter-cb added a commit to chunter-cb/viem that referenced this pull request Jul 8, 2026
base/eip-8130#27 adds BackwardsCompatible4337Account as a fourth deployed
singleton, so accounts.erc4337 (0x8812ee...) is a canonical deployed address
rather than an opt-in the caller must deploy. Update the deployment doc comment
and guides accordingly.
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.

1 participant