Skip to content

Commit

Permalink
pallet-xcm: fix transport fees for remote reserve transfers (#3798)
Browse files Browse the repository at this point in the history
Add `SetFeesMode { jit_withdraw: true }` before
`InitiateReserveWithdraw` instruction to allow paying JIT fees in the
executor.

This is backport of #3792
  • Loading branch information
acatangiu authored Mar 22, 2024
1 parent 3aafdb5 commit 6db99aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions polkadot/xcm/pallet-xcm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1875,6 +1875,7 @@ impl<T: Config> Pallet<T> {
]);
Ok(Xcm(vec![
WithdrawAsset(assets.into()),
SetFeesMode { jit_withdraw: true },
InitiateReserveWithdraw {
assets: Wild(AllCounted(max_assets)),
reserve,
Expand Down

0 comments on commit 6db99aa

Please sign in to comment.