Skip to content

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

@erikreppel

Description

@erikreppel

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions