Skip to content
Snippets Groups Projects
Unverified Commit 07ea6da2 authored by Nazar Mokrynskyi's avatar Nazar Mokrynskyi Committed by GitHub
Browse files

Derive `MaxEncodedLen` on `SlotDuration` (#2484)

# Description

Needed this in my code as part of the larger data structure.

---------

Co-authored-by: command-bot <>
parent 803ea760
No related merge requests found
Pipeline #418038 failed with stages
in 51 minutes and 44 seconds
......@@ -121,7 +121,20 @@ impl From<Slot> for u64 {
}
/// A slot duration defined in milliseconds.
#[derive(Clone, Copy, Debug, Encode, Decode, Hash, PartialOrd, Ord, PartialEq, Eq, TypeInfo)]
#[derive(
Clone,
Copy,
Debug,
Encode,
Decode,
MaxEncodedLen,
Hash,
PartialOrd,
Ord,
PartialEq,
Eq,
TypeInfo,
)]
pub struct SlotDuration(u64);
impl SlotDuration {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment