Skip to content

[Bug] extra_derives doesn't apply to periphery structs #1009

@squadgazzz

Description

@squadgazzz

Component

sol! macro

What version of Alloy are you on?

1.3.0

Operating System

macOS (Apple Silicon)

Describe the bug

Problem

When generating SC rust binding with sol! macro and adding extra_derives, those derives apply only to the SC instance Rust struct, and currently there is no direct way to do the same for periphery structs such as SC events and the enum that contains all of them, which gets generated altogether with the SC instance.

Acceptance criteria

extra_derives applies to all the generated SC instance-related structs, such as events, an enum of events, etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions