Function contract::init::init

source · []
#[no_mangle]
pub extern "C" fn init()
Expand description

init entrypoint, the first called method of the contract

It would be called after the contract is deployed, by the deployer of the contract, and is only callable once and only once, It will initialize dictionaries that the contract need to work with, and put them into the namedkeys of the contract.