-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
bug: forge bind --alloy
fails in specific contract
#8444
Comments
forge bind --alloy
fails in specific contractforge bind --alloy
fails in specific contract
cc @yash-atreya + @DaniPopes |
This is due to the structs having the same name in the library and contract i.e pragma solidity ^0.8.12;
library Height {
struct Info { // Changed name from `Data` to `Info`
uint64 revision_number;
uint64 revision_height;
}
}
contract Sample {
struct Data {
Height.Info height;
}
function f(Data calldata m) public {}
} |
This part in document make me confused. It means alloy is deprecated? |
|
@yash-atreya Thanks for the workaround suggestion. However, it isn't easy to apply it to my use-case. |
This is no longer an issue with alloy-rs/core#694 included |
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (5902a6f 2024-07-14T00:21:20.051403320Z)
What command(s) is the bug in?
forge bind --alloy
Operating System
Linux
Describe the bug
Thank you for providing such an amazing tool.
The following error occurred when the command
forge bind --alloy
was executed in my project:The relevant contract is here:
The text was updated successfully, but these errors were encountered: