diff --git a/authority/src/lib.rs b/authority/src/lib.rs index 93a30dac6..c140b6f15 100644 --- a/authority/src/lib.rs +++ b/authority/src/lib.rs @@ -61,6 +61,13 @@ pub struct DelayedOrigin { pub(crate) origin: Box, } +#[cfg(any(feature = "std", feature = "runtime-benchmarks", test))] +impl DelayedOrigin { + pub fn new(delay: BlockNumber, origin: Box) -> Self { + Self { delay, origin } + } +} + #[cfg(feature = "std")] mod helper { use std::cell::RefCell;