Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove default impl
  • Loading branch information
muharem committed Jan 22, 2023
commit 3e46afd7e0435b084e348e76d8e950043b48b7b2
8 changes: 2 additions & 6 deletions frame/support/src/traits/dispatch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@ pub trait EnsureOrigin<OuterOrigin> {
///
/// ** Should be used for benchmarking only!!! **
#[cfg(feature = "runtime-benchmarks")]
fn try_successful_origin() -> Result<OuterOrigin, ()> {
unimplemented!()
}
fn try_successful_origin() -> Result<OuterOrigin, ()>;
}

/// [`EnsureOrigin`] implementation that always fails.
Expand Down Expand Up @@ -165,9 +163,7 @@ pub trait EnsureOriginWithArg<OuterOrigin, Argument> {
///
/// ** Should be used for benchmarking only!!! **
#[cfg(feature = "runtime-benchmarks")]
fn try_successful_origin(_a: &Argument) -> Result<OuterOrigin, ()> {
unimplemented!()
}
fn try_successful_origin(a: &Argument) -> Result<OuterOrigin, ()>;
}

pub struct AsEnsureOriginWithArg<EO>(sp_std::marker::PhantomData<EO>);
Expand Down