[−][src]Function xpx_supercontracts_sdk::utils::init
pub fn init(init_handler: fn())
Init is function constructor that can can invoked only one time.
Most useful case is run some specifuc functionality and functions to tune-up and prepare some state for SuperContract.
It's impossible run that function twice.
Examples
use xpx_supercontracts_sdk::utils::{init, ping}; init(|| { let respond = ping(10); assert_eq!(respond.unwrap(), 11); });