Skip to content

Commit 034f66d

Browse files
authored
Add new for DelayedOrigin (#849) (#850)
1 parent ce4d97a commit 034f66d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

authority/src/lib.rs

+7
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,13 @@ pub struct DelayedOrigin<BlockNumber, PalletsOrigin> {
6161
pub(crate) origin: Box<PalletsOrigin>,
6262
}
6363

64+
#[cfg(any(feature = "std", feature = "runtime-benchmarks", test))]
65+
impl<BlockNumber, PalletsOrigin> DelayedOrigin<BlockNumber, PalletsOrigin> {
66+
pub fn new(delay: BlockNumber, origin: Box<PalletsOrigin>) -> Self {
67+
Self { delay, origin }
68+
}
69+
}
70+
6471
#[cfg(feature = "std")]
6572
mod helper {
6673
use std::cell::RefCell;

0 commit comments

Comments
 (0)