Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

LocationToAccountId reverse AccountId to Location can't distinguish #4296

Closed
@zqhxuyuan

Description

@zqhxuyuan

current there're AccountId32Aliases inside LocationToAccountId, we add another RelayChainAccountId32Aliases type in orml PR.

both of those two struct type can reverse AccountId to MultiLocation, thus only the first one will take effect. for example: if we configure with order (AccountId32Aliases, RelayChainAccountId32Aliases), then reverse AccountId on LocationToAccountId resulting (0, AccountId32). there'er no chance to get into (1, AccountId32) only if we configured with order (RelayChainAccountId32Aliases, AccountId32Aliases), but at the same time, the latter configure also cause no chance to get into (0, AccountId32).

Also I've checked polkadot codebase, seems there're no usercase invoking reverse() method on LocationToAccountId, Am I right?

Metadata

Metadata

Assignees

No one assigned

    Labels

    T6-XCMThis PR/Issue is related to XCM.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions