-
Notifications
You must be signed in to change notification settings - Fork 179
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
Unify system-contracts migration and staged-contracts migration #5405
Unify system-contracts migration and staged-contracts migration #5405
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## feature/stable-cadence #5405 +/- ##
==========================================================
+ Coverage 56.37% 57.74% +1.37%
==========================================================
Files 1030 839 -191
Lines 100057 82907 -17150
==========================================================
- Hits 56403 47873 -8530
+ Misses 39394 31373 -8021
+ Partials 4260 3661 -599
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
const contractA = ` | ||
access(all) contract A { | ||
access(all) fun foo() {} | ||
}` |
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.
Tests below would now have to use valid contract codes, once/if the update validator is enabled.
So I replaced the dummy codes with valid cadence codes.
eff3173
to
4d7d75d
Compare
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.
Thank you for refactoring the duplicated code!
Does this mean system contract updates are now going to be checked by the updated contract update checker, like other staged contract updates, and forced to pass?
…ow-go into supun/contract-update-validator
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.
Great work refactoring and cleaning this up!
Work towards onflow/cadence#2865
Depends on onflow/cadence#3117
Validator is disabled by default.
I also realized the core-contract migration and the staged contract migration contains a lot of duplicate logic.
Hence refactored the core-contracts migration (
ChangeContractCodeMigration
) to also use theStagedContractMigration
underneath. Core contract changes are also in a way, a set of staged contract changes.