mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-09 20:11:09 +00:00
Use ConstantPrice from polkadot-runtime-common
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user