Skip to content

Commit

Permalink
change teleport_assets to limited_teleport_assets
Browse files Browse the repository at this point in the history
  • Loading branch information
joepetrowski committed Sep 28, 2023
1 parent dcb9f62 commit 006459b
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ use pallet_alliance::{ProposalIndex, ProposalProvider};
use parachains_common::impls::NegativeImbalance;
use sp_runtime::DispatchError;
use sp_std::{cmp::Ordering, marker::PhantomData, prelude::*};
use xcm::latest::{Fungibility, Junction, Parent};
use xcm::latest::{Fungibility, Junction, Parent, WeightLimit};

type AccountIdOf<T> = <T as frame_system::Config>::AccountId;

Expand Down Expand Up @@ -63,7 +63,7 @@ where

<pallet_balances::Pallet<T>>::resolve_creating(&pallet_acc, amount);

let result = <pallet_xcm::Pallet<T>>::teleport_assets(
let result = <pallet_xcm::Pallet<T>>::limited_teleport_assets(
<<T as frame_system::Config>::RuntimeOrigin>::signed(pallet_acc.into()),
Box::new(Parent.into()),
Box::new(
Expand All @@ -73,6 +73,7 @@ where
),
Box::new((Parent, imbalance).into()),
0,
WeightLimit::Unlimited,
);

if let Err(err) = result {
Expand Down

0 comments on commit 006459b

Please sign in to comment.