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
I am testing this with only a single empty contract, as well as dummy test and deploy script, both of which should be excluded on the basis of the .s.sol and .t.sol extensions.
I've tried to work around this by setting the exclude option inside the foundry plugin, but I have never gotten it to do anything at all.
will still include the ABI for my Main (empty contract, not imported anywhere).
Trying broad exclude patterns like *.json or **/*.json also produces no changes whatsoever.
The way I remember this worked in previous versions is that I used the include option to only specify my own contracts, and it would generate the ABI & hooks only for those. That doesn't work anymore either.
Link to Minimal Reproducible Example
No response
Steps To Reproduce
No response
What Wagmi package(s) are you using?
@wagmi/cli
Wagmi Package(s) Version(s)
2.1.13
Viem Version
2.17.0
TypeScript Version
5.5.3
Anything else?
No response
The text was updated successfully, but these errors were encountered:
Unrelated to the issue at hand, but I also think the contracts option is super confusing as it requires specifying ABI, which wagmi should be able to pull out from the artifacts itself.
My understanding is you don't need to specify any contract there, but that isn't clear from the docs. I'm also unsure about the use case — generating hooks for contracts whose ABI you have but whose code isn't in your contracts repo (and so the ABI does not get generated by foundry)?
Check existing issues
Describe the bug
Using a pretty straightforward
wagmi.config.ts
:The generated file contains abis & hooks for testing contracts that it should exclude by default (according to this). e.g.
I am testing this with only a single empty contract, as well as dummy test and deploy script, both of which should be excluded on the basis of the
.s.sol
and.t.sol
extensions.I've tried to work around this by setting the
exclude
option inside thefoundry
plugin, but I have never gotten it to do anything at all.e.g.
will still include the ABI for my
Main
(empty contract, not imported anywhere).Trying broad exclude patterns like
*.json
or**/*.json
also produces no changes whatsoever.The way I remember this worked in previous versions is that I used the
include
option to only specify my own contracts, and it would generate the ABI & hooks only for those. That doesn't work anymore either.Link to Minimal Reproducible Example
No response
Steps To Reproduce
No response
What Wagmi package(s) are you using?
@wagmi/cli
Wagmi Package(s) Version(s)
2.1.13
Viem Version
2.17.0
TypeScript Version
5.5.3
Anything else?
No response
The text was updated successfully, but these errors were encountered: