Skip to main content
Version: v4
Attention!You are viewing outdated ink! 4 docs. Click here to view the latest docs.

Text/default Title Picture

Applicable to ink! messages and constructors.

Works as a hint for UIs to determine if constructor/message should be picked as default.

At most one constructor or message can be marked as default.

Example

#[ink(message, default)]
pub fn im_default(&self) {
}