Skip to content
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

Foundry wagmi generate broken with duplicate contract names from forge-std #4103

Closed
1 task done
bdphilly opened this issue Jun 30, 2024 · 1 comment
Closed
1 task done

Comments

@bdphilly
Copy link

bdphilly commented Jun 30, 2024

Check existing issues

  • I checked there isn't already an issue for the bug I encountered.
  • there are duplicates, but they have been closed. Duplicate issues: 3752, 3951

Describe the bug

Looks like there was a related fix a few weeks ago, however I'm still seeing the error.

Contract name "IERC721Enumerable" must be unique, Contract name "IERC721Metadata" must be unique.

Using forge-std v1.9.0, wagmi-cli v2.1.11

Steps To Reproduce

contract MyContract is ERC721Enumerable {
...
}
export default defineConfig({
    out: "src/generated.ts",
    plugins: [
        foundry({
            artifacts: '../generated/foundry/artifacts',
            include: [
                '**/MyContract.sol/MyContract.json',
            ]
        })
    ]
})

Run: $ yarn wagmi generate

What Wagmi package(s) are you using?

@wagmi/cli

Wagmi Version

2.10.8

Viem Version

2.16.4

TypeScript Version

5.0.2

@tmm tmm closed this as completed in ac038b2 Jul 1, 2024
Copy link
Contributor

This issue has been locked since it has been closed for more than 14 days.

If you found a concrete bug or regression related to it, please open a new bug report with a reproduction against the latest Wagmi version. If you have any questions or comments you can create a new discussion thread.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant