Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jasl committed Feb 6, 2022
1 parent 4b98825 commit be5ced2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pallets/xtransfer/src/xcm/xcm_transfer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -343,11 +343,12 @@ pub mod pallet {
) -> Result<Instruction<()>, DispatchError> {
let inv_dest = T::LocationInverter::invert_location(location)
.map_err(|()| Error::<T>::LocationInvertFailed)?;
let ancestry = T::LocationInverter::ancestry();

let fees = self
.fee
.clone()
.reanchored(&inv_dest)
.reanchored(&inv_dest, &ancestry)
.map_err(|_| Error::<T>::CannotReanchor)?;

Ok(BuyExecution {
Expand Down

0 comments on commit be5ced2

Please sign in to comment.