Skip to content

Commit

Permalink
add default trait bound for Config::Index
Browse files Browse the repository at this point in the history
  • Loading branch information
clangenb committed Sep 15, 2023
1 parent b370b4b commit ca20e9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion primitives/src/config/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pub trait Config {
/// transactions associated with a sender account.
/// This type enforces the (de)serialization implementation
/// also in no-std mode (unlike substrates MaybeSerializeDeserialize).
type Index: Debug + Copy + DeserializeOwned + AtLeast32Bit + Decode;
type Index: Default + Debug + Copy + DeserializeOwned + AtLeast32Bit + Decode;

/// The block number type used by the runtime.
type BlockNumber: Debug
Expand Down

0 comments on commit ca20e9e

Please sign in to comment.