bug(cast
): cast interface generates unexpected library instead of interface
#9960
Labels
cast
): cast interface generates unexpected library instead of interface
#9960
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
9bcfbaa
What version of Foundryup are you on?
No response
What command(s) is the bug in?
cast interface
Operating System
None
Describe the bug
Hey, i think there is a regression in
cast interface
(or at least an unexpected change).I have a:
Now
cast interface ./src/Test.sol:TestContract
will yield:Which I think different to previous versions as i'm pretty sure that before structs were included in the generated interface. Is this change intentional?, as ux wise it's a bit weird.
More of a question out of curiosity: Would it be possible to include the natspec on the generated interface?
In most smart contracts i'm reading i have to constantly jump between interface and contract to fully understand the code. Therefore i'm wondering if it wouldn't be a better approach to just have all the natspec on the actual contract (not the interface) and then simply generate the interface.
The text was updated successfully, but these errors were encountered: