#[contract_methods]Expand description
contract_methods defines impl for the contract struct.
Methods declared in the impl are callable by Transaction Command Call if their visibility is pub.
ยงBasic example
Define contract methods which can be invoked by Transaction Command Call.
#[contract_methods]
impl MyContract {
pub fn callable_function_a() {
// ...
}
pub fn callable_function_b(input :i32) -> String {
// ...
}
}