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`. ///