Skip to content

Polkadot-0.9.38 asset registry migration incorrect #894

@sander2

Description

@sander2

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions