Skip to content

Commit 56876b4

Browse files
authored
Add new for DelayedOrigin (#849)
1 parent f336875 commit 56876b4

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

authority/src/lib.rs

Lines changed: 7 additions & 0 deletions
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)