From 78dd521b9f344d504ff1d277771fccbe08ff6f9f Mon Sep 17 00:00:00 2001 From: Adrian Catangiu Date: Fri, 22 Mar 2024 14:52:21 +0200 Subject: [PATCH] pallet-xcm: fix transport fees for remote reserve transfers Add SetFeesMode { jit_withdraw: true } before InitiateReserveWithdraw instruction to allow paying JIT fees in the executor. --- polkadot/xcm/pallet-xcm/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/polkadot/xcm/pallet-xcm/src/lib.rs b/polkadot/xcm/pallet-xcm/src/lib.rs index fab8e298bb09..e183307dfc37 100644 --- a/polkadot/xcm/pallet-xcm/src/lib.rs +++ b/polkadot/xcm/pallet-xcm/src/lib.rs @@ -1875,6 +1875,7 @@ impl Pallet { ]); Ok(Xcm(vec![ WithdrawAsset(assets.into()), + SetFeesMode { jit_withdraw: true }, InitiateReserveWithdraw { assets: Wild(AllCounted(max_assets)), reserve,