From 49f370d569d750d6ada9a441696defd2a776a731 Mon Sep 17 00:00:00 2001 From: 4meta5 Date: Wed, 4 Aug 2021 14:27:42 +0200 Subject: [PATCH] done --- 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)]