[−][src]Macro fabric_contract::register
Macro to use in the lib.rs file of your contract's crate
Should be called with the functions that create new instances of the contract structures.
Example
ⓘThis example is not tested
use crate::fabric_contract::*; struct AssetContract {}; impl AssetContract { pub fn new() -> AssetContract { AssetContract {} } } fabric_contract::register!( AssetContract::new );