Skip to content

Commit

Permalink
Backport of #3340 - Fix DepositReserveAsset (#3545)
Browse files Browse the repository at this point in the history
Backport of #3340

It was backported to `v1.7.0` but changes didn't make it to `v1.8.0`
  • Loading branch information
NachoPal authored Mar 1, 2024
1 parent 9797cc2 commit 56bff5f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion polkadot/xcm/xcm-executor/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -827,8 +827,10 @@ impl<Config: config::Config> XcmExecutor<Config> {
let to_weigh = self.holding.saturating_take(assets.clone());
self.holding.subsume_assets(to_weigh.clone());

let to_weigh_reanchored = Self::reanchored(to_weigh, &dest, None);

let mut message_to_weigh =
vec![ReserveAssetDeposited(to_weigh.into()), ClearOrigin];
vec![ReserveAssetDeposited(to_weigh_reanchored), ClearOrigin];
message_to_weigh.extend(xcm.0.clone().into_iter());
let (_, fee) =
validate_send::<Config::XcmSender>(dest.clone(), Xcm(message_to_weigh))?;
Expand Down

0 comments on commit 56bff5f

Please sign in to comment.