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

Provide abort function to user #2239

Open
chipshort opened this issue Sep 5, 2024 · 0 comments
Open

Provide abort function to user #2239

chipshort opened this issue Sep 5, 2024 · 0 comments
Milestone

Comments

@chipshort
Copy link
Collaborator

One thing we can easily provide is a version of env::panic_str called cosmwasm_std::abort which immediately terminates the contract with the given message. In contrast to the panic handler and the panic! macro, this would avoid adding file paths and line numbers to the panic message. However, I'm not sure if this is good for unit testing as we suddenly need a way to handle those abortions in unit tests.

Originally posted by @webmaster128 in #1570 (comment)

@chipshort chipshort added this to the 2.3.0 milestone Oct 15, 2024
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

No branches or pull requests

1 participant