From 8a5709d7b91f4bc4f07c93a232ec485cc7b3e2bf Mon Sep 17 00:00:00 2001 From: Marian Vanderka Date: Thu, 5 Dec 2024 14:39:07 +0100 Subject: [PATCH] fixes mocks --- pallets/bootstrap/src/mock.rs | 1 + pallets/proof-of-stake/src/mock.rs | 2 ++ pallets/xyk/src/mock.rs | 2 ++ 3 files changed, 5 insertions(+) diff --git a/pallets/bootstrap/src/mock.rs b/pallets/bootstrap/src/mock.rs index ea3aa0248..ccab63956 100644 --- a/pallets/bootstrap/src/mock.rs +++ b/pallets/bootstrap/src/mock.rs @@ -152,6 +152,7 @@ impl pallet_proof_of_stake::Config for Test { type Min3rdPartyRewardVolume = ConstU128<10>; type ValuationApi = Xyk; type SchedulesPerBlock = ConstU32<5>; + type NontransferableTokens = Nothing; } impl BootstrapBenchmarkingConfig for Test {} diff --git a/pallets/proof-of-stake/src/mock.rs b/pallets/proof-of-stake/src/mock.rs index 77ae3407a..71912312e 100644 --- a/pallets/proof-of-stake/src/mock.rs +++ b/pallets/proof-of-stake/src/mock.rs @@ -278,6 +278,7 @@ impl pos::Config for Test { type WeightInfo = (); type ValuationApi = MockValuationApi; type SchedulesPerBlock = ConstU32<5>; + type NontransferableTokens = Nothing; } #[cfg(feature = "runtime-benchmarks")] @@ -294,6 +295,7 @@ impl pos::Config for Test { type WeightInfo = (); type ValuationApi = Xyk; type SchedulesPerBlock = ConstU32<5>; + type NontransferableTokens = Nothing; } pub struct TokensActivationPassthrough(PhantomData); diff --git a/pallets/xyk/src/mock.rs b/pallets/xyk/src/mock.rs index f0a42dc73..a082f83b0 100644 --- a/pallets/xyk/src/mock.rs +++ b/pallets/xyk/src/mock.rs @@ -313,6 +313,7 @@ impl pallet_proof_of_stake::Config for Test { type Min3rdPartyRewardVolume = ConstU128<10>; type ValuationApi = XykStorage; type SchedulesPerBlock = ConstU32<5>; + type NontransferableTokens = Nothing; } #[cfg(feature = "runtime-benchmarks")] @@ -329,6 +330,7 @@ impl pallet_proof_of_stake::Config for Test { type Min3rdPartyRewardVolume = ConstU128<10>; type ValuationApi = XykStorage; type SchedulesPerBlock = ConstU32<5>; + type NontransferableTokens = Nothing; } pub struct TokensActivationPassthrough(PhantomData);