Skip to content

Commit ffee2b7

Browse files
Update errors
1 parent f807e4e commit ffee2b7

File tree

1 file changed

+4
-4
lines changed
  • pallets/transaction-storage/src

1 file changed

+4
-4
lines changed

pallets/transaction-storage/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -298,15 +298,15 @@ pub mod pallet {
298298
fn integrity_test() {
299299
assert!(
300300
!T::MaxBlockTransactions::get().is_zero(),
301-
"Not useful if data cannot be stored"
301+
"MaxTransactionSize must be greater than zero"
302302
);
303-
assert!(!T::MaxTransactionSize::get().is_zero(), "Not useful if data cannot be stored");
303+
assert!(!T::MaxTransactionSize::get().is_zero(), "MaxTransactionSize must be greater than zero");
304304
let default_period = sp_transaction_storage_proof::DEFAULT_STORAGE_PERIOD.into();
305305
let storage_period = GenesisConfig::<T>::default().storage_period;
306-
assert_eq!(storage_period, default_period, "Not useful if data is not stored");
306+
assert_eq!(storage_period, default_period, "GenesisConfig.storage_period must match DEFAULT_STORAGE_PERIOD");
307307
assert!(
308308
!T::AuthorizationPeriod::get().is_zero(),
309-
"Not useful if authorizations are never valid"
309+
"AuthorizationPeriod must be greater than zero"
310310
);
311311
}
312312
}

0 commit comments

Comments
 (0)