-
Notifications
You must be signed in to change notification settings - Fork 428
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
Always revert state upon encountering Result::Err #975
Conversation
This fixes some misconception between ink! and SEAL.
Don't you need to change the call site, too? So that the error is decoded and returned to the caller when a |
Yea, you are right. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Now the errors should be properly forwarded to the caller.
Codecov Report
@@ Coverage Diff @@
## master #975 +/- ##
==========================================
+ Coverage 62.78% 63.60% +0.81%
==========================================
Files 244 244
Lines 9148 9149 +1
==========================================
+ Hits 5744 5819 +75
+ Misses 3404 3330 -74
Continue to review full report at Codecov.
|
This fixes some misconception between ink! and SEAL.
Brought up by @xgreenx in this comment first: #641 (comment)