xcm-executor: DepositReserveAsset charges delivery fees from inner assets (#3142)
This fix aims to solve an issue in Kusama that resulted in failed reserve asset transfers. During multi-hop XCMs, like reserve asset transfers where the reserve is not the sender nor the destination, but a third remote chain, the origin is not available to pay for delivery fees out of their account directly, so delivery fees should be paid out of transferred assets. This commit also adds an xcm-emulator regression test that validates this scenario is now working. Signed-off-by:Adrian Catangiu <adrian@parity.io> Co-authored-by:
Francisco Aguirre <franciscoaguirreperez@gmail.com>
Showing
- Cargo.lock 1 addition, 0 deletionsCargo.lock
- cumulus/parachains/integration-tests/emulated/tests/assets/asset-hub-rococo/Cargo.toml 1 addition, 0 deletions...n-tests/emulated/tests/assets/asset-hub-rococo/Cargo.toml
- cumulus/parachains/integration-tests/emulated/tests/assets/asset-hub-rococo/src/lib.rs 3 additions, 2 deletions...n-tests/emulated/tests/assets/asset-hub-rococo/src/lib.rs
- cumulus/parachains/integration-tests/emulated/tests/assets/asset-hub-rococo/src/tests/reserve_transfer.rs 122 additions, 0 deletions...sts/assets/asset-hub-rococo/src/tests/reserve_transfer.rs
- cumulus/parachains/integration-tests/emulated/tests/assets/asset-hub-westend/src/lib.rs 3 additions, 1 deletion...-tests/emulated/tests/assets/asset-hub-westend/src/lib.rs
- cumulus/parachains/integration-tests/emulated/tests/assets/asset-hub-westend/src/tests/reserve_transfer.rs 122 additions, 0 deletions...ts/assets/asset-hub-westend/src/tests/reserve_transfer.rs
- cumulus/parachains/runtimes/testing/penpal/src/xcm_config.rs 26 additions, 31 deletionscumulus/parachains/runtimes/testing/penpal/src/xcm_config.rs
- polkadot/xcm/xcm-executor/src/lib.rs 16 additions, 0 deletionspolkadot/xcm/xcm-executor/src/lib.rs
Please register or sign in to comment