Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add generate_storage_info
  • Loading branch information
KiChjang committed Jun 22, 2021
commit 35d6fa75d231854d70e7fc57ba4ced411d19f376
1 change: 1 addition & 0 deletions frame/identity/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ pub mod pallet {

#[pallet::pallet]
#[pallet::generate_store(pub(super) trait Store)]
#[pallet::generate_storage_info]
pub struct Pallet<T>(_);

/// Information that is pertinent to identify the entity behind an account.
Expand Down
4 changes: 2 additions & 2 deletions frame/identity/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ pub enum IdentityField {
}

/// Wrapper type for `BitFlags<IdentityField>` that implements `Codec`.
#[derive(Clone, Copy, PartialEq, Default, RuntimeDebug)]
#[derive(Clone, Copy, PartialEq, Default, RuntimeDebug, MaxEncodedLen)]
pub struct IdentityFields(pub(crate) BitFlags<IdentityField>);

impl Eq for IdentityFields {}
Expand Down Expand Up @@ -304,7 +304,7 @@ impl<
}

/// Information concerning a registrar.
#[derive(Clone, Encode, Decode, Eq, PartialEq, RuntimeDebug)]
#[derive(Clone, Encode, Decode, Eq, PartialEq, RuntimeDebug, MaxEncodedLen)]
pub struct RegistrarInfo<
Balance: Encode + Decode + Clone + Debug + Eq + PartialEq,
AccountId: Encode + Decode + Clone + Debug + Eq + PartialEq
Expand Down