Replace bitmask with bitflags (#7159)

Signed-off-by: koushiro <koushiro.cqx@gmail.com>
This commit is contained in:
Qinxuan Chen
2020-10-29 20:19:59 +08:00
committed by GitHub
parent c8a245e5e0
commit bd450c24ff
15 changed files with 67 additions and 80 deletions
@@ -92,7 +92,7 @@ use frame_support::{
traits::{
BalanceStatus, ChangeMembers, Contains, ContainsLengthBound, Currency, CurrencyToVote, Get,
InitializeMembers, LockIdentifier, LockableCurrency, OnUnbalanced, ReservableCurrency,
WithdrawReason, WithdrawReasons,
WithdrawReasons,
},
weights::Weight,
};
@@ -365,7 +365,7 @@ decl_module! {
T::ModuleId::get(),
&who,
locked_balance,
WithdrawReasons::except(WithdrawReason::TransactionPayment),
WithdrawReasons::except(WithdrawReasons::TRANSACTION_PAYMENT),
);
Voting::<T>::insert(&who, (locked_balance, votes));