File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed
pallets/transaction-storage/src Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Original file line number Diff line number Diff 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( ) ,
Original file line number Diff line number Diff line change @@ -70,11 +70,7 @@ impl pallet_transaction_storage::Config for Test {
7070pub 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 ( ) ;
You can’t perform that action at this time.
0 commit comments