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

wagmi generate with foundry plugin bug #3752

Closed
1 task done
gigamesh opened this issue Mar 26, 2024 · 3 comments
Closed
1 task done

wagmi generate with foundry plugin bug #3752

gigamesh opened this issue Mar 26, 2024 · 3 comments

Comments

@gigamesh
Copy link

Describe the bug

I think this is happening because there is a IERC721TokenReceiver in the forge-std package, which gets imported into every contract library using foundry. So it effectively gets imported and compiled multiple times. Apparently that confuses wagmi?

Contract name "IERC721TokenReceiver" must be unique.

image

Link to Minimal Reproducible Example

No response

Steps To Reproduce

No response

Wagmi Version

2.5.11

Viem Version

2.8.14

TypeScript Version

5.3.3

Check existing issues

Anything else?

No response

@gigamesh
Copy link
Author

update: I was able to get this working by adding contracts to the exclude array. Not ideal but seems ok now.

@matmilbury
Copy link

This should be reopened. Nice that we have a workaround but the bug is still there.

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 other comments you can create a new discussion.

@github-actions github-actions bot locked and limited conversation to collaborators Apr 22, 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

2 participants