diff --git a/traits/authn/src/util.rs b/traits/authn/src/util.rs index 3538ae4..779c533 100644 --- a/traits/authn/src/util.rs +++ b/traits/authn/src/util.rs @@ -43,6 +43,12 @@ where #[scale_info(skip_type_params(A, Ch, Cred))] pub struct Dev(T, PhantomData<(A, Ch, Cred)>); +impl Dev { + pub fn new(t: T) -> Self { + Self(t, PhantomData) + } +} + impl UserAuthenticator for Dev where T: AsRef + FullCodec + MaxEncodedLen + TypeInfo + 'static,