--- a/pallets/unique/src/lib.rs +++ b/pallets/unique/src/lib.rs @@ -120,9 +120,6 @@ /// Configuration trait of this pallet. pub trait Config: system::Config + pallet_common::Config + Sized + TypeInfo { - /// Overarching event type. - type RuntimeEvent: From> + Into<::RuntimeEvent>; - /// Weight information for extrinsics in this pallet. type WeightInfo: WeightInfo; @@ -132,28 +129,7 @@ /// Weight info information for extra refungible pallet operations. type RefungibleExtensionsWeightInfo: RefungibleExtensionsWeightInfo; } - -decl_event! { - pub enum Event - where - ::AccountId, - { - /// Collection sponsor was removed - /// - /// # Arguments - /// * collection_id: ID of the affected collection. - CollectionSponsorRemoved(CollectionId), - /// Collection sponsor was set - /// - /// # Arguments - /// * collection_id: ID of the affected collection. - /// * owner: New sponsor address. - CollectionSponsorSet(CollectionId, AccountId), - - } -} - type SelfWeightOf = ::WeightInfo; // # Used definitions @@ -260,9 +236,6 @@ #[doc = "Default FT collection limit."] const FT_DEFAULT_COLLECTION_LIMITS: CollectionLimits = CollectionLimits::with_default_limits(CollectionMode::Fungible(0)); - - - pub fn deposit_event() = default; fn on_initialize(_now: T::BlockNumber) -> Weight { Weight::zero() --- a/runtime/common/config/pallets/mod.rs +++ b/runtime/common/config/pallets/mod.rs @@ -93,7 +93,6 @@ } impl pallet_unique::Config for Runtime { - type RuntimeEvent = RuntimeEvent; type WeightInfo = pallet_unique::weights::SubstrateWeight; type CommonWeightInfo = CommonWeights; type RefungibleExtensionsWeightInfo = CommonWeights; --- a/runtime/common/construct_runtime/mod.rs +++ b/runtime/common/construct_runtime/mod.rs @@ -55,7 +55,7 @@ // Unique Pallets Inflation: pallet_inflation::{Pallet, Call, Storage} = 60, - Unique: pallet_unique::{Pallet, Call, Storage, Event} = 61, + Unique: pallet_unique::{Pallet, Call, Storage} = 61, #[runtimes(opal)] Scheduler: pallet_unique_scheduler_v2::{Pallet, Call, Storage, Event} = 62,