-
Notifications
You must be signed in to change notification settings - Fork 86
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
Polkadot-1.7.2: restricted transfer location changes #1853
Conversation
Still WIP, we need to figure out how to create the same |
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.
It works migrating the expected Location
with the correct hash.
2 points left:
- Do we want to migrate also some possible accounts in
demo
? @wischli? If newLocation
s are added before RU they will not be migrated, but nothing will be broken - Add some pre/post checks
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## polkadot-v1.7.2 #1853 +/- ##
==================================================
Coverage ? 46.61%
==================================================
Files ? 167
Lines ? 13065
Branches ? 0
==================================================
Hits ? 6090
Misses ? 6975
Partials ? 0 ☔ View full report in Codecov by Sentry. |
libs/types/src/locations.rs
Outdated
/// blake2 hashing on storage map keys, and we don't want the extra overhead | ||
XCM(H256), | ||
/// XCM Location sending destinations. | ||
Xcm(Location), |
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.
@onnovisser from this, you do not need to create the hash, just put the location (will be probably a VersionedLocation
)
* feat: add pre + post-upgrade * feat: add nuking migration for dev and demo * fix: remove account list for demo
Description
Modify how RestrictedTransferLocation stores XCM information and do the consequent migration. Based on this #1833 (comment)