Macro sewup_derive::fn_sig [−][src]
fn_sig!() { /* proc-macro */ }
Expand description
fn_sig
helps you get you function signature
-
provide function name to get function signature from the same namespace, which function should be decorated with
#[ewasm_fn]
, for example,fn_sig!(the_name_of_contract_handler)
-
provide a function name with input parameters then the macro will calculate the correct functional signature for you. ex:
fn_sig!(the_name_of_contract_handler( a: i32, b: String ))