-
Notifications
You must be signed in to change notification settings - Fork 155
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] cannot derive Clone with sol macro from an ABI #617
Comments
quickest resolution would be to add a clone derive to the code in |
@prestwich not sure if its just this easy #616 |
yeah, that should do it. we need to release cc @DaniPopes this is technically a breaking change but given the nature of the issue, basically no one would've actually hand implemented clone for these things |
As follow up, we should probably make sure that we're completely consistent across all generated types |
Fix released in 0.7.2. |
Component
contract
What version of Alloy are you on?
alloy v0.1.0 (https://github.com/alloy-rs/alloy?rev=bbef8de#bbef8de3)
Operating System
macOS (Apple Silicon)
Describe the bug
(from discussion in telegram channel)
The sol macro using an abi file. The sol macro seems to automatically add #[derive(Clone)] to SolStructs and errors, but not to SolEvents, so trying to derive Clone when using an abi as input breaks because of conflicting implementations of Clone on SolStructs and errors.
The text was updated successfully, but these errors were encountered: