We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce4d97a commit 034f66dCopy full SHA for 034f66d
authority/src/lib.rs
@@ -61,6 +61,13 @@ pub struct DelayedOrigin<BlockNumber, PalletsOrigin> {
61
pub(crate) origin: Box<PalletsOrigin>,
62
}
63
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
+
71
#[cfg(feature = "std")]
72
mod helper {
73
use std::cell::RefCell;
0 commit comments