Skip to content
Snippets Groups Projects
Commit 72a2ad4f authored by KingFishDev's avatar KingFishDev Committed by GitHub
Browse files

fix: add Debug to token traits (#8830)

parent 9bf62ef6
No related merge requests found
......@@ -17,6 +17,7 @@
//! Miscellaneous types.
use sp_std::fmt::Debug;
use codec::{Encode, Decode, FullCodec};
use sp_core::RuntimeDebug;
use sp_arithmetic::traits::{Zero, AtLeast32BitUnsigned};
......@@ -160,9 +161,9 @@ impl WithdrawReasons {
}
/// Simple amalgamation trait to collect together properties for an AssetId under one roof.
pub trait AssetId: FullCodec + Copy + Default + Eq + PartialEq {}
impl<T: FullCodec + Copy + Default + Eq + PartialEq> AssetId for T {}
pub trait AssetId: FullCodec + Copy + Default + Eq + PartialEq + Debug {}
impl<T: FullCodec + Copy + Default + Eq + PartialEq + Debug> AssetId for T {}
/// Simple amalgamation trait to collect together properties for a Balance under one roof.
pub trait Balance: AtLeast32BitUnsigned + FullCodec + Copy + Default {}
impl<T: AtLeast32BitUnsigned + FullCodec + Copy + Default> Balance for T {}
pub trait Balance: AtLeast32BitUnsigned + FullCodec + Copy + Default + Debug {}
impl<T: AtLeast32BitUnsigned + FullCodec + Copy + Default + Debug> Balance for T {}
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