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 14, 2023
1 parent 9af58e2 commit 6b80e76
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 @@ -32,7 +32,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 6b80e76

Please sign in to comment.