-
Notifications
You must be signed in to change notification settings - Fork 139
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
Fix the entitlements migration #3026
Fix the entitlements migration #3026
Conversation
Cadence Benchstat comparisonThis branch with compared with the base branch onflow:master commit 8cf198f Collapsed results for better readability
|
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #3026 +/- ##
=======================================
Coverage 80.35% 80.36%
=======================================
Files 360 360
Lines 84973 85031 +58
=======================================
+ Hits 68283 68332 +49
- Misses 14254 14261 +7
- Partials 2436 2438 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
…cated primitive static types
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! Thanks for improving this
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! Thank you for adding these
Description
Fix the entitlements migration by not adding authorizations to reference types which were previously converted from deprecated primitive static types. Otherwise it incorrectly migrates e.g.
PublicAccount
toauth(Storage, Contracts, Keys, Inbox, Capabilities) &Account
(viaPublicAccount
to&Account
through the account types migration).Also:
StaticType.IsDeprecated
to enable the fix abovePrimitiveStaticType.SemaType()
to not just returnnil
, but panic for deprecated types. This prevents e.g. accidentally constructing invalid types like "&nil
" when converting types boxing deprecated primitive types.PrimitiveStaticType.SemaType
to convert the deprecated account typesPublicAccount
andAuthAccount
to sema typesmaster
branchFiles changed
in the Github PR explorer