Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
add TypeInfo trait bound (#10031)
Browse files Browse the repository at this point in the history
  • Loading branch information
GopherJ authored and bkchr committed Oct 15, 2021
1 parent 11e6bb0 commit 57346f6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions frame/assets/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ pub mod pallet {
use super::*;
use frame_support::{dispatch::DispatchResult, pallet_prelude::*};
use frame_system::pallet_prelude::*;
use scale_info::TypeInfo;

#[pallet::pallet]
#[pallet::generate_store(pub(super) trait Store)]
Expand All @@ -180,10 +181,10 @@ pub mod pallet {
type Event: From<Event<Self, I>> + IsType<<Self as frame_system::Config>::Event>;

/// The units in which we record balances.
type Balance: Member + Parameter + AtLeast32BitUnsigned + Default + Copy + MaxEncodedLen;
type Balance: Member + Parameter + AtLeast32BitUnsigned + Default + Copy + MaxEncodedLen + TypeInfo;

/// Identifier for the class of asset.
type AssetId: Member + Parameter + Default + Copy + HasCompact + MaxEncodedLen;
type AssetId: Member + Parameter + Default + Copy + HasCompact + MaxEncodedLen + TypeInfo;

/// The currency mechanism.
type Currency: ReservableCurrency<Self::AccountId>;
Expand Down

0 comments on commit 57346f6

Please sign in to comment.