Skip to main content

contract

Attribute Macro contract 

Source
#[contract]
Expand description

Marks a struct as a Rúnar smart contract.

Strips #[readonly] annotations from fields so the struct compiles. The Rúnar compiler parses these annotations with its own parser.