-
Notifications
You must be signed in to change notification settings - Fork 241
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
Differentiate successful and failed callback #155
Comments
Want to note that this has become important to two partners looking to build on NEAR. |
TODO:
|
And any thoughts on what to do with |
I wonder if this needs to be an error type, or a panic. Naively, it seems that the number of input promises is a static property of the contract, and, if you are missing a promise, this is a bug. Bugs in Rust are generally handled via a panic. Are there cases where we might want to recover from a missing promise? |
Opting against having a
|
We need for a function to differentiate result of a successful and failed callback. Currently, when we declare function that expects a callback like this:
It will fail if execution of whatever produced
arg0
orarg2
failed. Instead it should be:The text was updated successfully, but these errors were encountered: