Use ConstantPrice from polkadot-runtime-common

This commit is contained in:
Keith Yeung
2022-03-14 09:09:02 -07:00
parent d42833b4b9
commit 780475dc70
5 changed files with 88 additions and 75 deletions
+1 -1
View File
@@ -47,6 +47,7 @@ use frame_support::{
traits::{EnsureOrigin, Get},
weights::{constants::WEIGHT_PER_MILLIS, Weight},
};
use polkadot_runtime_common::xcm_sender::ConstantPrice;
use rand_chacha::{
rand_core::{RngCore, SeedableRng},
ChaChaRng,
@@ -1090,7 +1091,6 @@ impl PriceForSiblingDelivery for () {
}
}
pub struct ConstantPrice<T>(sp_std::marker::PhantomData<T>);
impl<T: Get<MultiAssets>> PriceForSiblingDelivery for ConstantPrice<T> {
fn price_for_sibling_delivery(_: ParaId, _: &Xcm<()>) -> MultiAssets {
T::get()