diff --git a/frame/lottery/src/lib.rs b/frame/lottery/src/lib.rs index 94b7dd459889a..fb675ad83519b 100644 --- a/frame/lottery/src/lib.rs +++ b/frame/lottery/src/lib.rs @@ -209,6 +209,8 @@ decl_error! { decl_module! { pub struct Module for enum Call where origin: T::Origin, system = frame_system { + type Error = Error; + const ModuleId: ModuleId = T::ModuleId::get(); const MaxCalls: u32 = T::MaxCalls::get() as u32; diff --git a/frame/membership/src/lib.rs b/frame/membership/src/lib.rs index 96fc15b0509b6..532a235ad36c6 100644 --- a/frame/membership/src/lib.rs +++ b/frame/membership/src/lib.rs @@ -113,6 +113,8 @@ decl_module! { for enum Call where origin: T::Origin { + type Error = Error; + fn deposit_event() = default; /// Add a member `who` to the set. diff --git a/frame/tips/src/lib.rs b/frame/tips/src/lib.rs index da22bf0b1ffba..015163ef6b513 100644 --- a/frame/tips/src/lib.rs +++ b/frame/tips/src/lib.rs @@ -195,7 +195,6 @@ decl_module! { for enum Call where origin: T::Origin { - /// The period for which a tip remains open after is has achieved threshold tippers. const TipCountdown: T::BlockNumber = T::TipCountdown::get();