fix(cli): support named Foundry deployments sharing one ABI#5011
fix(cli): support named Foundry deployments sharing one ABI#5011theamodhshetty wants to merge 5 commits intowevm:mainfrom
Conversation
|
@theamodhshetty is attempting to deploy a commit to the Wevm Team on Vercel. A member of the Team first needs to authorize it. |
🦋 Changeset detectedLatest commit: d7ca8c2 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Small correction on my previous comment (formatting got mangled while posting from terminal). I added a follow-up fix on this branch to keep named Foundry deployments in sync during What changed:
Validation run:
|
|
Pushed another follow-up on this branch:
This covers plugins that implement
Validation run:
|
Summary
This fixes
foundryplugin deployments so multiple generated contracts can share a single artifact ABI.Issue: when one ABI is reused for multiple deployments on the same chain (e.g.
DAI+WETHboth usingERC20), users currently can't express this indeploymentswithout overwriting values.What changed
Counter: { 1: '0x...' }DAI: { artifact: 'ERC20', address: { 1: '0x...' } }WETH: { artifact: 'ERC20', address: { 1: '0x...' } }site/cli/api/plugins/foundry.md.named deployments can share one artifact ABI.@wagmi/clipatch bump.Validation
pnpm --filter @wagmi/cli check:typespnpm exec vitest run --project cli packages/cli/src/plugins/foundry.test.ts -t "named deployments can share one artifact ABI"Note: running the full
foundry.test.tssuite locally requiresforgeto be installed; this environment does not haveforgeavailable.Closes #4396