Skip to content
Snippets Groups Projects
Commit 0b0c41b5 authored by Cheng JIANG's avatar Cheng JIANG Committed by GitHub
Browse files

add TypeInfo trait bound (#10031)

parent 5d34c245
Branches
No related merge requests found
......@@ -170,6 +170,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)]
......@@ -189,7 +190,8 @@ pub mod pallet {
+ Default
+ Copy
+ MaybeSerializeDeserialize
+ MaxEncodedLen;
+ MaxEncodedLen
+ TypeInfo;
/// Identifier for the class of asset.
type AssetId: Member
......@@ -198,7 +200,8 @@ pub mod pallet {
+ Copy
+ HasCompact
+ MaybeSerializeDeserialize
+ MaxEncodedLen;
+ MaxEncodedLen
+ TypeInfo;
/// The currency mechanism.
type Currency: ReservableCurrency<Self::AccountId>;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment