Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
impl GetDispatchInfo for Extrinsics within runtime test-utils
Browse files Browse the repository at this point in the history
  • Loading branch information
muharem committed Jul 26, 2022
1 parent 7c6fb38 commit 20fb5d0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test-utils/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
///
Expand Down

0 comments on commit 20fb5d0

Please sign in to comment.