From 190c6461f252a4982421a5c18360779c5e91af11 Mon Sep 17 00:00:00 2001 From: zqhxuyuan Date: Mon, 21 Mar 2022 16:41:37 +0800 Subject: [PATCH] add MaxEncodedLen trait to Time (#11078) --- substrate/frame/support/src/traits/misc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/substrate/frame/support/src/traits/misc.rs b/substrate/frame/support/src/traits/misc.rs index 8c61874003..2a0d6f0523 100644 --- a/substrate/frame/support/src/traits/misc.rs +++ b/substrate/frame/support/src/traits/misc.rs @@ -510,7 +510,7 @@ pub trait HandleLifetime { impl HandleLifetime 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; }