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 and bkontur committed Mar 26, 2024
1 parent d7f78b7 commit 5930bbd
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 @@ -1883,6 +1883,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 5930bbd

Please sign in to comment.