-
Notifications
You must be signed in to change notification settings - Fork 137
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
Add tryUpdate
method to Account.Contracts
#2769
Conversation
Cadence Benchstat comparisonThis branch with compared with the base branch onflow:feature/stable-cadence commit e0407b6 Collapsed results for better readability
|
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## feature/stable-cadence #2769 +/- ##
==========================================================
+ Coverage 79.65% 79.72% +0.07%
==========================================================
Files 339 341 +2
Lines 80623 80864 +241
==========================================================
+ Hits 64219 64471 +252
+ Misses 14104 14090 -14
- Partials 2300 2303 +3
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
should we unset |
@bluesign That's a good point! |
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.
Nice!
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!
Good idea of just generating a CompositeType
.
Just one concern (optional wrapping) and some more tests would be good to cover all cases.
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.
👌
41e9f5a
to
c0e7084
Compare
c0e7084
to
dede475
Compare
Closes #2700
Description
Adds a
tryUpdate
method that gracefully handles deployment errors.If the update was unsuccessful,
DeploymentResult.deployedContract
will benil
.This
tryUpdate
method handles any user error (syntax errors, semantic errors, etc.) gracefully. Any internal error would still cause the script/transaction to terminate.master
branchFiles changed
in the Github PR explorer