mirror of
https://github.com/pezkuwichain/pezkuwi-runtime-templates.git
synced 2026-07-22 11:25:54 +00:00
fix xcm constants (#268)
This commit is contained in:
committed by
Gustavo Gonzalez
parent
88accf616e
commit
1d429ee3ea
@@ -272,7 +272,8 @@ pub type XcmRouter = WithUniqueTopic<(
|
|||||||
)>;
|
)>;
|
||||||
|
|
||||||
parameter_types! {
|
parameter_types! {
|
||||||
pub const MaxLockers: u32 = 0;
|
pub const MaxLockers: u32 = 8;
|
||||||
|
pub const MaxRemoteLockConsumers: u32 = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
impl pallet_xcm::Config for Runtime {
|
impl pallet_xcm::Config for Runtime {
|
||||||
@@ -283,7 +284,7 @@ impl pallet_xcm::Config for Runtime {
|
|||||||
type CurrencyMatcher = ();
|
type CurrencyMatcher = ();
|
||||||
type ExecuteXcmOrigin = EnsureXcmOrigin<RuntimeOrigin, LocalOriginToLocation>;
|
type ExecuteXcmOrigin = EnsureXcmOrigin<RuntimeOrigin, LocalOriginToLocation>;
|
||||||
type MaxLockers = MaxLockers;
|
type MaxLockers = MaxLockers;
|
||||||
type MaxRemoteLockConsumers = MaxLockers;
|
type MaxRemoteLockConsumers = MaxRemoteLockConsumers;
|
||||||
type RemoteLockConsumerIdentifier = ();
|
type RemoteLockConsumerIdentifier = ();
|
||||||
type RuntimeCall = RuntimeCall;
|
type RuntimeCall = RuntimeCall;
|
||||||
type RuntimeEvent = RuntimeEvent;
|
type RuntimeEvent = RuntimeEvent;
|
||||||
|
|||||||
@@ -234,7 +234,8 @@ mod xcm_tests {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn pallet_xcm_constants() {
|
fn pallet_xcm_constants() {
|
||||||
assert_eq!(MaxLockers::get(), 0);
|
assert_eq!(MaxLockers::get(), 8);
|
||||||
|
assert_eq!(MaxRemoteLockConsumers::get(), 0);
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
<evm_runtime_template::Runtime as pallet_xcm::Config>::VERSION_DISCOVERY_QUEUE_SIZE,
|
<evm_runtime_template::Runtime as pallet_xcm::Config>::VERSION_DISCOVERY_QUEUE_SIZE,
|
||||||
100
|
100
|
||||||
|
|||||||
@@ -198,7 +198,8 @@ pub type XcmRouter = WithUniqueTopic<(
|
|||||||
)>;
|
)>;
|
||||||
|
|
||||||
parameter_types! {
|
parameter_types! {
|
||||||
pub const MaxLockers: u32 = 0;
|
pub const MaxLockers: u32 = 8;
|
||||||
|
pub const MaxRemoteLockConsumers: u32 = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
impl pallet_xcm::Config for Runtime {
|
impl pallet_xcm::Config for Runtime {
|
||||||
@@ -209,7 +210,7 @@ impl pallet_xcm::Config for Runtime {
|
|||||||
type CurrencyMatcher = ();
|
type CurrencyMatcher = ();
|
||||||
type ExecuteXcmOrigin = EnsureXcmOrigin<RuntimeOrigin, LocalOriginToLocation>;
|
type ExecuteXcmOrigin = EnsureXcmOrigin<RuntimeOrigin, LocalOriginToLocation>;
|
||||||
type MaxLockers = MaxLockers;
|
type MaxLockers = MaxLockers;
|
||||||
type MaxRemoteLockConsumers = MaxLockers;
|
type MaxRemoteLockConsumers = MaxRemoteLockConsumers;
|
||||||
type RemoteLockConsumerIdentifier = ();
|
type RemoteLockConsumerIdentifier = ();
|
||||||
type RuntimeCall = RuntimeCall;
|
type RuntimeCall = RuntimeCall;
|
||||||
type RuntimeEvent = RuntimeEvent;
|
type RuntimeEvent = RuntimeEvent;
|
||||||
|
|||||||
@@ -233,7 +233,8 @@ mod xcm_tests {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn pallet_xcm_constants() {
|
fn pallet_xcm_constants() {
|
||||||
assert_eq!(MaxLockers::get(), 0);
|
assert_eq!(MaxLockers::get(), 8);
|
||||||
|
assert_eq!(MaxRemoteLockConsumers::get(), 0);
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
<generic_runtime_template::Runtime as pallet_xcm::Config>::VERSION_DISCOVERY_QUEUE_SIZE,
|
<generic_runtime_template::Runtime as pallet_xcm::Config>::VERSION_DISCOVERY_QUEUE_SIZE,
|
||||||
100
|
100
|
||||||
|
|||||||
Reference in New Issue
Block a user