Skip to main content
Version: v6
Attention!You are viewing unreleased ink! 6 docs. Click here to view the latest docs.

Text/event2 Title Picture

Applicable on struct definitions.

Defines an ink! event. A contract can define multiple such ink! events.

Events can now be defined independently of contracts. The legacy syntax of events defined within a contract module using #[ink(event)] continues to be valid.

See our section on Events for a detailed description and examples.