Make balance::Trait::Balance require Member (#1057)

This commit is contained in:
Bastian Köcher
2018-11-02 12:09:58 +01:00
committed by Gav Wood
parent 2bd4c5cc05
commit 26f1381d0d
+1 -1
View File
@@ -106,7 +106,7 @@ impl<AccountId> EnsureAccountLiquid<AccountId> for () {
pub trait Trait: system::Trait {
/// The balance of an account.
type Balance: Parameter + SimpleArithmetic + Codec + Default + Copy + As<Self::AccountIndex> + As<usize> + As<u64>;
type Balance: Parameter + Member + SimpleArithmetic + Codec + Default + Copy + As<Self::AccountIndex> + As<usize> + As<u64>;
/// Type used for storing an account's index; implies the maximum number of accounts the system
/// can hold.
type AccountIndex: Parameter + Member + Codec + Default + SimpleArithmetic + As<u8> + As<u16> + As<u32> + As<u64> + As<usize> + Copy;