fix xcm constants (#268)

This commit is contained in:
Nikita Khateev
2024-07-31 14:41:34 +04:00
committed by Gustavo Gonzalez
parent 88accf616e
commit 1d429ee3ea
4 changed files with 10 additions and 6 deletions
@@ -198,7 +198,8 @@ pub type XcmRouter = WithUniqueTopic<(
)>;
parameter_types! {
pub const MaxLockers: u32 = 0;
pub const MaxLockers: u32 = 8;
pub const MaxRemoteLockConsumers: u32 = 0;
}
impl pallet_xcm::Config for Runtime {
@@ -209,7 +210,7 @@ impl pallet_xcm::Config for Runtime {
type CurrencyMatcher = ();
type ExecuteXcmOrigin = EnsureXcmOrigin<RuntimeOrigin, LocalOriginToLocation>;
type MaxLockers = MaxLockers;
type MaxRemoteLockConsumers = MaxLockers;
type MaxRemoteLockConsumers = MaxRemoteLockConsumers;
type RemoteLockConsumerIdentifier = ();
type RuntimeCall = RuntimeCall;
type RuntimeEvent = RuntimeEvent;
@@ -233,7 +233,8 @@ mod xcm_tests {
#[test]
fn pallet_xcm_constants() {
assert_eq!(MaxLockers::get(), 0);
assert_eq!(MaxLockers::get(), 8);
assert_eq!(MaxRemoteLockConsumers::get(), 0);
assert_eq!(
<generic_runtime_template::Runtime as pallet_xcm::Config>::VERSION_DISCOVERY_QUEUE_SIZE,
100