The asset registry contains a VersionedMultiLocation here:
|
pub location: Option<VersionedMultiLocation>, |
This type changed in the 0.9.38 upgrade. Here's the old version:
https://github.com/paritytech/polkadot/blob/645723987cf9662244be8faf4e9b63e8b9a1b3a3/xcm/src/lib.rs#L73-L76
And here's the new:
https://github.com/paritytech/polkadot/blob/8deef133d3ca1bdea8c6267c4a66ecabb903a18b/xcm/src/lib.rs#L318-L325
So assetRegistry.metadata needs to be migrated as well.
I'm not sure how best to approach this migration, since the definitions of xcm v0 got removed from polkadot. I considered adding a dependency on polkadot 0.9.37, but this is problematic for project that use a patch section in their tomls.. We may have to redefine the types manually, which is very annoying.. Any other ideas are welcome
The asset registry contains a
VersionedMultiLocationhere:open-runtime-module-library/traits/src/asset_registry.rs
Line 29 in 8301b6c
This type changed in the 0.9.38 upgrade. Here's the old version:
https://github.com/paritytech/polkadot/blob/645723987cf9662244be8faf4e9b63e8b9a1b3a3/xcm/src/lib.rs#L73-L76
And here's the new:
https://github.com/paritytech/polkadot/blob/8deef133d3ca1bdea8c6267c4a66ecabb903a18b/xcm/src/lib.rs#L318-L325
So assetRegistry.metadata needs to be migrated as well.
I'm not sure how best to approach this migration, since the definitions of xcm v0 got removed from polkadot. I considered adding a dependency on polkadot 0.9.37, but this is problematic for project that use a
patchsection in their tomls.. We may have to redefine the types manually, which is very annoying.. Any other ideas are welcome