mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 09:21:04 +00:00
* Dedupe some code and companion for #8589 * Bump Substrate
This commit is contained in:
@@ -26,7 +26,7 @@ pub use frame_support::{
|
||||
dispatch::{Dispatchable, Parameter, Weight, DispatchError, DispatchResultWithPostInfo, DispatchInfo},
|
||||
weights::{PostDispatchInfo, GetDispatchInfo},
|
||||
sp_runtime::DispatchErrorWithPostInfo,
|
||||
traits::{Get, Contains},
|
||||
traits::{Get, Contains, IsInVec},
|
||||
};
|
||||
pub use xcm_executor::{
|
||||
Assets, Config, traits::{TransactAsset, ConvertOrigin, FilterAssetLocation, InvertLocation, OnResponse}
|
||||
@@ -254,11 +254,6 @@ parameter_types! {
|
||||
pub static WeightPrice: (MultiLocation, u128) = (Null, 1_000_000_000_000);
|
||||
}
|
||||
|
||||
pub struct IsInVec<T>(PhantomData<T>);
|
||||
impl<X: Ord + PartialOrd, T: Get<Vec<X>>> Contains<X> for IsInVec<T> {
|
||||
fn sorted_members() -> Vec<X> { let mut r = T::get(); r.sort(); r }
|
||||
}
|
||||
|
||||
pub type TestBarrier = (
|
||||
TakeWeightCredit,
|
||||
AllowKnownQueryResponses<TestResponseHandler>,
|
||||
|
||||
Reference in New Issue
Block a user