Skip to main content
Version: v6

Text/trait Title Picture

Marks trait definitions to ink! as special ink! trait definitions.

There are some restrictions that apply to ink! trait definitions that this macro checks. Also ink! trait definitions are required to have specialized structure so that the main #[ink::contract] macro can properly generate code for its implementations.

See our section on Trait Definitions for a detailed description and examples.