fix: asset-registry metadata migration#896
fix: asset-registry metadata migration#896sander2 wants to merge 1 commit intoopen-web3-stack:masterfrom
Conversation
|
Kind of blocked by paritytech/polkadot#6884 which changes the encoding format for versioned types. |
|
Actually there is no need of migration for V1 because V1 and V2 are identical (after paritytech/polkadot#6884 is merged) |
Nice, once that is backported this won't be required indeed, so closing this |
|
Actually maybe we should still merge this to for v0 users? Better to remove the location as done by this migration, than to have invalid storage items I think |
|
I am not sure if that makes sense. They should just upgrade it to the v1 format before upgrade to v3. Delete data and have invalid data is somewhat the same to the runtime as failed decode should just give the default data. |
Addresses #894 .
Note that as discussed in the issue, the migration only works if
Metadata.locationisNoneorSome(VersionedMultiLocation::V1(_)). Any metadata items that areSome(VersionedMultiLocation::V0())will be set toNone.