Skip to content

Commit

Permalink
Rename will_increase_total_supply param
Browse files Browse the repository at this point in the history
Signed-off-by: Dengjianping <djptux@gmail.com>
  • Loading branch information
Dengjianping committed Jul 12, 2022
1 parent 571bee6 commit 986f26f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions primitives/src/assets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down Expand Up @@ -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() {
Expand All @@ -400,7 +400,7 @@ where
asset_id,
account,
amount,
will_increase_total_supply,
can_increase_total_supply,
)
})
}
Expand Down

0 comments on commit 986f26f

Please sign in to comment.