add MaxEncodedLen trait to Time (#11078)

This commit is contained in:
zqhxuyuan
2022-03-21 16:41:37 +08:00
committed by GitHub
parent 46bc9af1b3
commit 190c6461f2
+1 -1
View File
@@ -510,7 +510,7 @@ pub trait HandleLifetime<T> {
impl<T> HandleLifetime<T> for () {}
pub trait Time {
type Moment: sp_arithmetic::traits::AtLeast32Bit + Parameter + Default + Copy;
type Moment: sp_arithmetic::traits::AtLeast32Bit + Parameter + Default + Copy + MaxEncodedLen;
fn now() -> Self::Moment;
}