Macro sewup_derive::ewasm_auto_assert_eq[][src]

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

helps you assert return instance from your handler with auto unwrap ewasm_main, namely #[ewasm_main(auto)]

This usage of the macro likes ewasm_assert_eq, but the contract main function should be decorated with #[ewasm_main(auto)], and the equivalence arm will be serialized into Vec<u8> Besides, you can run the handler as a block chan user with by syntax as the same usage of ewasm_assert_eq.