Skip to content

Commit 23b6255

Browse files
author
Aleks Pickle
authored
events: register Moment type (scs#67)
Thank you, merging that!
1 parent 89ac6c0 commit 23b6255

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/events.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ impl TryFrom<Metadata> for EventsDecoder {
9696
decoder.register_type_size::<u32>("MemberCount")?;
9797
decoder.register_type_size::<crate::AccountId>("AccountId")?;
9898
decoder.register_type_size::<crate::BlockNumber>("BlockNumber")?;
99+
decoder.register_type_size::<crate::Moment>("Moment")?;
99100
decoder.register_type_size::<crate::Hash>("Hash")?;
100101
decoder.register_type_size::<crate::Balance>("Balance")?;
101102
// VoteThreshold enum index

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ use sp_runtime::{AccountId32 as AccountId, MultiSignature};
7777
pub use sp_core::H256 as Hash;
7878
/// The block number type used in this runtime.
7979
pub type BlockNumber = u64;
80+
/// The timestamp moment type used in this runtime.
81+
pub type Moment = u64;
8082
/// Index of a transaction.
8183
//fixme: make generic
8284
pub type Index = u32;

0 commit comments

Comments
 (0)