From cd4ffa862f93aa317cbbfa2256796be422ef9f1c Mon Sep 17 00:00:00 2001 From: Luke Parker Date: Mon, 15 Sep 2025 21:32:20 -0400 Subject: [PATCH] Remove `coins`, `validator-sets` use of Substrate's event system We've defined our own. --- substrate/coins/src/lib.rs | 2 -- substrate/validator-sets/src/lib.rs | 6 ------ 2 files changed, 8 deletions(-) diff --git a/substrate/coins/src/lib.rs b/substrate/coins/src/lib.rs index c73cd956..e29b7136 100644 --- a/substrate/coins/src/lib.rs +++ b/substrate/coins/src/lib.rs @@ -54,8 +54,6 @@ mod pallet { /// The configuration of this pallet. #[pallet::config] pub trait Config: frame_system::Config { - /// The event type. - type RuntimeEvent: From> + IsType<::RuntimeEvent>; /// What decides if mints are allowed. type AllowMint: AllowMint; } diff --git a/substrate/validator-sets/src/lib.rs b/substrate/validator-sets/src/lib.rs index b9ddca12..2ad147fe 100644 --- a/substrate/validator-sets/src/lib.rs +++ b/substrate/validator-sets/src/lib.rs @@ -90,8 +90,6 @@ mod pallet { #[pallet::config] pub trait Config: frame_system::Config + coins_pallet::Config { - type RuntimeEvent: IsType<::RuntimeEvent> + From>; - // type ShouldEndSession: ShouldEndSession>; } @@ -219,10 +217,6 @@ mod pallet { type DelayedDeallocations = DelayedDeallocations; } - #[pallet::event] - #[pallet::generate_deposit(pub(super) fn deposit_event)] - pub enum Event {} - /* /// The generated key pair for a given validator set instance. #[pallet::storage]