Skip to content

Commit 91536d4

Browse files
Use default
1 parent 32dadb1 commit 91536d4

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

pallets/transaction-storage/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,8 +304,7 @@ pub mod pallet {
304304
"Not useful if data cannot be stored"
305305
);
306306
assert!(!T::MaxTransactionSize::get().is_zero(), "Not useful if data cannot be stored");
307-
let default_period: BlockNumberFor<T> =
308-
sp_transaction_storage_proof::DEFAULT_STORAGE_PERIOD.into();
307+
let default_period = GenesisConfig::<T>::default().storage_period;
309308
assert!(!default_period.is_zero(), "Not useful if data is not stored");
310309
assert!(
311310
!T::AuthorizationPeriod::get().is_zero(),

pallets/transaction-storage/src/mock.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,7 @@ impl pallet_transaction_storage::Config for Test {
7070
pub fn new_test_ext() -> TestExternalities {
7171
let t = RuntimeGenesisConfig {
7272
system: Default::default(),
73-
transaction_storage: pallet_transaction_storage::GenesisConfig::<Test> {
74-
storage_period: 10,
75-
byte_fee: 2,
76-
entry_fee: 200,
77-
},
73+
transaction_storage: Default::default(),
7874
}
7975
.build_storage()
8076
.unwrap();

0 commit comments

Comments
 (0)