You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When setting up a new create wagmi project and configuring Foundry according to the documentation, an error occurs during the wagmi generate command. The error message indicates that the contract name "IERC721TokenReceiver" must be unique.
Steps to Reproduce
Initialize a new create wagmi project.
Configure Foundry wagmi plugin.
Create a new Foundry project using forge init.
Attempt to generate wagmi artifacts with wagmi generate.
> wagmi generate
✔ Validating plugins
⠹ Resolving contracts
Contract name "IERC721TokenReceiver" must be unique.
ELIFECYCLE Command failed with exit code 1.
Bug description
When setting up a new create wagmi project and configuring Foundry according to the documentation, an error occurs during the wagmi generate command. The error message indicates that the contract name "IERC721TokenReceiver" must be unique.
Steps to Reproduce
create wagmi
project.forge init
.wagmi generate
.My Configuration File (wagmi.config.ts)
Cause
The issue is caused by a conflict with forge-std version 1.8.0 or higher, which is installed by default with Foundry.
Solution
To resolve this issue, i downgraded forge-std to version 1.7.6. Following these steps:
forge remove foundry-rs/forge-std git commit -m "Removed foundry-rs/forge-std"
Link to Minimal Reproducible Example
No response
Steps To Reproduce
No response
Wagmi Version
latest
Viem Version
latest
TypeScript Version
5.2.2
Check existing issues
Anything else?
Let me know if i can help somehow!
The text was updated successfully, but these errors were encountered: