mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 02:17:58 +00:00
fix: add Debug to token traits (#8830)
This commit is contained in:
@@ -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 {}
|
||||
|
||||
Reference in New Issue
Block a user