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

[Bug] Cannot derive Default from sol macros due to no default label of generated enum types #618

Closed
erikreppel opened this issue May 2, 2024 · 0 comments · Fixed by #645
Labels
bug Something isn't working

Comments

@erikreppel
Copy link
Contributor

Component

contract

What version of Alloy are you on?

├── alloy v0.1.0 (https://github.com/erikreppel/alloy?rev=1d2d411#1d2d4118)

Operating System

macOS (Apple Silicon)

Describe the bug

Currently sol! { #[derive(Default)] ...} fails to compile because derives are alloyed to ally types generated, included the events enum. Because there is no #[default] set on the enum compilation fails.

@erikreppel erikreppel added the bug Something isn't working label May 2, 2024
@DaniPopes DaniPopes transferred this issue from alloy-rs/alloy May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant