mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-15 19:41:05 +00:00
make it actually compile
This commit is contained in:
@@ -25,6 +25,7 @@ use frame_support::{
|
|||||||
match_types, parameter_types,
|
match_types, parameter_types,
|
||||||
traits::{ConstU32, Everything, Nothing, PalletInfoAccess},
|
traits::{ConstU32, Everything, Nothing, PalletInfoAccess},
|
||||||
traits::{EnsureOriginWithArg, Everything, PalletInfoAccess},
|
traits::{EnsureOriginWithArg, Everything, PalletInfoAccess},
|
||||||
|
traits::{EnsureOrigin, EnsureOriginWithArg, Everything, PalletInfoAccess},
|
||||||
};
|
};
|
||||||
use pallet_xcm::{EnsureXcm, XcmPassthrough};
|
use pallet_xcm::{EnsureXcm, XcmPassthrough};
|
||||||
use parachains_common::{
|
use parachains_common::{
|
||||||
@@ -280,7 +281,7 @@ impl EnsureOriginWithArg<RuntimeOrigin, MultiLocation> for ForeignCreators {
|
|||||||
o: RuntimeOrigin,
|
o: RuntimeOrigin,
|
||||||
a: &MultiLocation,
|
a: &MultiLocation,
|
||||||
) -> sp_std::result::Result<Self::Success, RuntimeOrigin> {
|
) -> sp_std::result::Result<Self::Success, RuntimeOrigin> {
|
||||||
let origin_location = EnsureXcm::try_origin(o.clone())?;
|
let origin_location = EnsureXcm::<Everything>::try_origin(o.clone())?;
|
||||||
|
|
||||||
// dirty hack, should port vvv into master and use `starts_with`
|
// dirty hack, should port vvv into master and use `starts_with`
|
||||||
// https://github.com/paritytech/polkadot/commit/e640d826513c45a0452138c8908a699e19ac0143
|
// https://github.com/paritytech/polkadot/commit/e640d826513c45a0452138c8908a699e19ac0143
|
||||||
|
|||||||
Reference in New Issue
Block a user