Skip to content

Commit

Permalink
add MaxEncodedLen trait to Time (paritytech#11078)
Browse files Browse the repository at this point in the history
  • Loading branch information
zqhxuyuan authored Mar 21, 2022
1 parent 4ad6445 commit 28eaae5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frame/support/src/traits/misc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 28eaae5

Please sign in to comment.