From 14e977472ac5a06c9f45a212e0c774ea2b58ebd0 Mon Sep 17 00:00:00 2001 From: vedhavyas Date: Fri, 18 Oct 2024 13:59:35 +0530 Subject: [PATCH] small cleanup --- pallets/collator-selection/src/lib.rs | 5 +++-- runtime/shibuya/src/lib.rs | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/pallets/collator-selection/src/lib.rs b/pallets/collator-selection/src/lib.rs index 0077c5e455..1116a632bd 100644 --- a/pallets/collator-selection/src/lib.rs +++ b/pallets/collator-selection/src/lib.rs @@ -236,8 +236,9 @@ pub mod pallet { .invulnerables .iter() .collect::>(); - assert!( - duplicate_invulnerables.len() == self.invulnerables.len(), + assert_eq!( + duplicate_invulnerables.len(), + self.invulnerables.len(), "duplicate invulnerables in genesis." ); diff --git a/runtime/shibuya/src/lib.rs b/runtime/shibuya/src/lib.rs index 45499b450f..f2320cb9c5 100644 --- a/runtime/shibuya/src/lib.rs +++ b/runtime/shibuya/src/lib.rs @@ -1469,7 +1469,7 @@ impl pallet_treasury::Config for Runtime { type Paymaster = PayFromAccount; type BalanceConverter = UnityAssetBalanceConversion; - type SpendOrigin = TreasurySpender; + type SpendOrigin = TreasurySpender; type PayoutPeriod = ConstU32<{ 3 * DAYS }>; #[cfg(feature = "runtime-benchmarks")] type BenchmarkHelper = ();