From 610e8cd394b9f014d55bf2ea6d90147d02080afb Mon Sep 17 00:00:00 2001 From: BrianWu Date: Wed, 11 Sep 2024 09:52:44 +0800 Subject: [PATCH] Fix swork-benchmarking build error --- cstrml/swork/benchmarking/src/mock.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cstrml/swork/benchmarking/src/mock.rs b/cstrml/swork/benchmarking/src/mock.rs index e323ebde..5e94e0ba 100644 --- a/cstrml/swork/benchmarking/src/mock.rs +++ b/cstrml/swork/benchmarking/src/mock.rs @@ -87,6 +87,9 @@ parameter_types! { pub const FileReplica: u32 = 4; pub const InitFileByteFee: Balance = 1000; // Need align with FileDuration and FileBaseReplica pub const InitFileKeysCountFee: Balance = 1000; + pub const InitMaxFileByteFee: Balance = 1_000_000; + pub const InitMaxFileKeysCountFee: Balance = 1_000_000; + pub const InitMaxFileBaseFee: Balance = 1_000_000_000_000; pub const StorageReferenceRatio: (u128, u128) = (1, 2); pub const StorageIncreaseRatio: Perbill = Perbill::from_percent(1); pub const StorageDecreaseRatio: Perbill = Perbill::from_percent(1); @@ -108,6 +111,9 @@ impl market::Config for Test { type FileReplica = FileReplica; type InitFileByteFee = InitFileByteFee; type InitFileKeysCountFee = InitFileKeysCountFee; + type InitMaxFileByteFee = InitMaxFileByteFee; + type InitMaxFileBaseFee = InitMaxFileBaseFee; + type InitMaxFileKeysCountFee = InitMaxFileKeysCountFee; type StorageReferenceRatio = StorageReferenceRatio; type StorageIncreaseRatio = StorageIncreaseRatio; type StorageDecreaseRatio = StorageDecreaseRatio;