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.

Invalid incoming XCMP message data when XCM contains multiple assets and one of them is the relay chain asset #1700

@jiguantong

Description

@jiguantong

Version: polkadot-v0.9.26
StackExchange: https://substrate.stackexchange.com/questions/4929/invalid-incoming-xcmp-message-data

Steps to reproduce:

  1. Rockmine submit polkadotXcm.reserveTransferAsset and transfer two assets, one of them is {parents: 1, Here}
assets: XcmVersionedMultiAssets
{
  V1: [
    {
      id: {
        Concrete: {
          parents: 0
          interior: {
            X2: [
              {
                PalletInstance: 50
              }
              {
                GeneralIndex: 9
              }
            ]
          }
        }
      }
      fun: {
        Fungible: 1,000,000,000,000
      }
    }
    {
      id: {
        Concrete: {
          parents: 1
          interior: Here
        }
      }
      fun: {
        Fungible: 1,000,000,000,000
      }
    }
  ]
}

encoded call: 0x1f02010101009120010001010004578647ec6e8e1ca8b91d5b6c4df991e73bcc515b2aedcef31e64db8c69e64d01080000020432052400070010a5d4e800010000070010a5d4e801000000
2. The dest chain can't decode the XCM and no event be deposited.

DEBUG

I debug with local environment rococo-dev & pangolin parachain-dev & statemint-dev, the results show xcmp-queue can't decode the XCM here https://github.com/paritytech/cumulus/blob/polkadot-v0.9.26/pallets/xcmp-queue/src/lib.rs#L640

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions