From 986f26fb48e4304e7bc91349aae3110b558a4a9c Mon Sep 17 00:00:00 2001 From: Dengjianping Date: Tue, 12 Jul 2022 11:09:47 +0800 Subject: [PATCH] Rename will_increase_total_supply param Signed-off-by: Dengjianping --- primitives/src/assets.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/primitives/src/assets.rs b/primitives/src/assets.rs index 25055af1e..ccf28e2e9 100644 --- a/primitives/src/assets.rs +++ b/primitives/src/assets.rs @@ -324,7 +324,7 @@ where asset_id: AssetId, account: &C::AccountId, amount: Balance, - will_increase_total_supply: bool, + can_increase_total_supply: bool, ) -> Result<(), FungibleLedgerError>; /// Check whether `account` can decrease its balance by `amount` in the given `asset_id`. @@ -390,7 +390,7 @@ where asset_id: AssetId, account: &C::AccountId, amount: Balance, - will_increase_total_supply: bool, + can_increase_total_supply: bool, ) -> Result<(), FungibleLedgerError> { Self::ensure_valid(asset_id)?; FungibleLedgerError::from_deposit(if asset_id == A::NativeAssetId::get() { @@ -400,7 +400,7 @@ where asset_id, account, amount, - will_increase_total_supply, + can_increase_total_supply, ) }) }