Skip to main content

contract_entry

Macro contract_entry 

Source
macro_rules! contract_entry {
    ($handler:path) => { ... };
}
Expand description

Defines the contract entry point.

§Example

fn my_handler() -> Result<()> {
    // Contract logic
    Ok(())
}

contract_entry!(my_handler);