Macro sewup_derive::input_from[][src]

input_from!() { /* proc-macro */ }
Expand description

input_from will help you to get the input data from contract caller, and automatically deserialize input into handler input_from!(contract, the_name_of_the_handler) Besides, you can map the error to your customized error when something wrong happened in input_from!, for example: input_from!(contract, check_input_object, |_| Err("DeserdeError"))