From 20fb5d05a3df8a9335bad3752abfed827803cd1f Mon Sep 17 00:00:00 2001 From: muharem Date: Tue, 26 Jul 2022 11:44:37 +0200 Subject: [PATCH] impl GetDispatchInfo for Extrinsics within runtime test-utils --- test-utils/runtime/src/lib.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test-utils/runtime/src/lib.rs b/test-utils/runtime/src/lib.rs index ea62f2ac84f3d..983ab7ea06020 100644 --- a/test-utils/runtime/src/lib.rs +++ b/test-utils/runtime/src/lib.rs @@ -241,6 +241,12 @@ impl sp_runtime::traits::Dispatchable for Extrinsic { } } +impl frame_support::weights::GetDispatchInfo for Extrinsic { + fn get_dispatch_info(&self) -> frame_support::weights::DispatchInfo { + panic!("This implementation should not be used for actual get_dispatch_info."); + } +} + impl Extrinsic { /// Convert `&self` into `&Transfer`. ///