Macro sewup_derive::ewasm_assert_ok[][src]

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

helps you assert your handler without error and returns

#[ewasm_test]
mod tests {
    use super::*;

    #[ewasm_test]
    fn test_execute_basic_operations() {
        ewasm_assert_ok!(contract_fn());
    }
}

Besides, you can run the handler as a block chan user with by syntax.

ewasm_assert_ok!(contract_fn() by "eD5897cCEa7aee785D31cdcA87Cf59D1D041aAFC");