Skip to content
Snippets Groups Projects
Commit b7b467e0 authored by zjb0807's avatar zjb0807 Committed by GitHub
Browse files

add TypeInfo for DispatchTime (#9987)

parent 3319cad9
Branches
No related merge requests found
......@@ -18,6 +18,7 @@
//! Traits and associated utilities for scheduling dispatchables in FRAME.
use codec::{Codec, Decode, Encode, EncodeLike};
use scale_info::TypeInfo;
use sp_runtime::{DispatchError, RuntimeDebug};
use sp_std::{fmt::Debug, prelude::*};
......@@ -31,7 +32,7 @@ pub type Period<BlockNumber> = (BlockNumber, u32);
pub type Priority = u8;
/// The dispatch time of a scheduled task.
#[derive(Encode, Decode, Copy, Clone, PartialEq, Eq, RuntimeDebug)]
#[derive(Encode, Decode, Copy, Clone, PartialEq, Eq, RuntimeDebug, TypeInfo)]
pub enum DispatchTime<BlockNumber> {
/// At specified block.
At(BlockNumber),
......
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