Skip to content

Commit

Permalink
Temporary registration of Balance type before #102 merged
Browse files Browse the repository at this point in the history
  • Loading branch information
ascjones committed May 6, 2020
1 parent 13b44b8 commit 8f9c2cd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ impl<T: System> TryFrom<Metadata> for EventsDecoder<T> {
type_sizes: HashMap::new(),
marker: PhantomData,
};
// REMOVE when https://github.com/paritytech/substrate-subxt/pull/102 is merged
// Balance type will be registered by the proc macro.
decoder.register_type_size::<u128>("Balance")?;

// register default event arg type sizes for dynamic decoding of events
decoder.register_type_size::<bool>("bool")?;
decoder.register_type_size::<u32>("ReferendumIndex")?;
Expand Down

0 comments on commit 8f9c2cd

Please sign in to comment.