Skip to content

Commit bc18b2a

Browse files
authored
Replace bitmask with bitflags (#7159)
Signed-off-by: koushiro <[email protected]>
1 parent 26c6737 commit bc18b2a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ use sp_std::prelude::*;
3636
use codec::{Encode, Decode};
3737
use frame_support::{
3838
decl_storage, decl_module,
39-
traits::{Currency, Get, OnUnbalanced, ExistenceRequirement, WithdrawReason, Imbalance},
39+
traits::{Currency, Get, OnUnbalanced, ExistenceRequirement, WithdrawReasons, Imbalance},
4040
weights::{
4141
Weight, DispatchInfo, PostDispatchInfo, GetDispatchInfo, Pays, WeightToFeePolynomial,
4242
WeightToFeeCoefficient,
@@ -457,9 +457,9 @@ impl<T: Trait + Send + Sync> ChargeTransactionPayment<T> where
457457
who,
458458
fee,
459459
if tip.is_zero() {
460-
WithdrawReason::TransactionPayment.into()
460+
WithdrawReasons::TRANSACTION_PAYMENT
461461
} else {
462-
WithdrawReason::TransactionPayment | WithdrawReason::Tip
462+
WithdrawReasons::TRANSACTION_PAYMENT | WithdrawReasons::TIP
463463
},
464464
ExistenceRequirement::KeepAlive,
465465
) {

0 commit comments

Comments
 (0)