Skip to main content
Version: v5
Attention!You are viewing outdated ink! 5 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 constuctor/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) {
}