Attribute Macro brush_lang::contract

source · []
#[contract]
Expand description

Entry point for use brush’s macros in ink! smart contracts.

Description

The macro consumes brush’s macros to simplify the usage of the library. After consumption, it pastes ink! code and then ink!’s macros will be processed.

This macro consumes impl section for traits defined with #[brush::trait_definition].