From a2742a70d459dc60c79c7282205b1a987b64645a Mon Sep 17 00:00:00 2001 From: Amar Singh Date: Thu, 5 Aug 2021 04:55:18 -0400 Subject: [PATCH] done (#9494) --- frame/support/src/weights.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/frame/support/src/weights.rs b/frame/support/src/weights.rs index c0431534ed937..6b4f5e4046cc4 100644 --- a/frame/support/src/weights.rs +++ b/frame/support/src/weights.rs @@ -329,6 +329,12 @@ pub trait GetDispatchInfo { fn get_dispatch_info(&self) -> DispatchInfo; } +impl GetDispatchInfo for () { + fn get_dispatch_info(&self) -> DispatchInfo { + DispatchInfo::default() + } +} + /// Weight information that is only available post dispatch. /// NOTE: This can only be used to reduce the weight or fee, not increase it. #[derive(Clone, Copy, Eq, PartialEq, Default, RuntimeDebug, Encode, Decode)]