From 53720da2b4dc1aaf1d1a0786bf8ab989e1ace847 Mon Sep 17 00:00:00 2001 From: Cheng JIANG <cheng.jiang@outlook.fr> Date: Mon, 18 Oct 2021 14:37:22 +0800 Subject: [PATCH] AssetId trait should also contain TypeInfo bound (#10038) --- substrate/frame/support/src/traits/tokens/misc.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/substrate/frame/support/src/traits/tokens/misc.rs b/substrate/frame/support/src/traits/tokens/misc.rs index 214c28708a1..100138171ab 100644 --- a/substrate/frame/support/src/traits/tokens/misc.rs +++ b/substrate/frame/support/src/traits/tokens/misc.rs @@ -161,8 +161,8 @@ impl WithdrawReasons { } /// Simple amalgamation trait to collect together properties for an AssetId under one roof. -pub trait AssetId: FullCodec + Copy + Eq + PartialEq + Debug {} -impl<T: FullCodec + Copy + Eq + PartialEq + Debug> AssetId for T {} +pub trait AssetId: FullCodec + Copy + Eq + PartialEq + Debug + scale_info::TypeInfo {} +impl<T: FullCodec + Copy + Eq + PartialEq + Debug + scale_info::TypeInfo> AssetId for T {} /// Simple amalgamation trait to collect together properties for a Balance under one roof. pub trait Balance: -- GitLab