-
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
Improve static type and entitlements migrations: Update array/dictionary type directly #3158
Conversation
Cadence Benchstat comparisonThis branch with compared with the base branch onflow:master commit 32e81b0 Collapsed results for better readability
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3158 +/- ##
==========================================
- Coverage 80.56% 80.55% -0.01%
==========================================
Files 381 381
Lines 92859 92783 -76
==========================================
- Hits 74809 74741 -68
+ Misses 15339 15335 -4
+ Partials 2711 2707 -4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
Nice!
Work towards #3096
Description
The static type and entitlement migrations need to update the types of arrays and dictionaries.
So far this required creating a new array/dictionary with the same elements, as atree did not provide means to update the type of the underlying array and ordered map.
With onflow/atree#374 and onflow/atree#375, atree gained the ability to update the type of an array and ordered map directly.
SetType
functions forArrayValue
andDictionaryValue
NewWithType
functions forArrayValue
andDictionaryValue
SetType
functions in the static type and entitlements migrationsmaster
branchFiles changed
in the Github PR explorer