Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default message when contract execution fail #296

Closed
yanganto opened this issue Feb 5, 2022 · 0 comments · Fixed by #299
Closed

Default message when contract execution fail #296

yanganto opened this issue Feb 5, 2022 · 0 comments · Fixed by #299

Comments

@yanganto
Copy link
Member

yanganto commented Feb 5, 2022

Return the default message when execution is not expected

#[ewasm_main(default="Something does not works")]
fn main() -> anyhow::Result<()> { .. } 

or

#[ewasm_main(auto, default="Something does not works")]
fn main() -> anyhow::Result<()> { .. } 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant