Skip to content
This repository has been archived by the owner on Apr 1, 2024. It is now read-only.

Commit

Permalink
fix .
Browse files Browse the repository at this point in the history
  • Loading branch information
dnjscksdn98 committed Oct 25, 2023
1 parent 0e1fa70 commit 6613fab
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion frame/balances/src/impl_currency.rs
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ where
.unwrap_or_else(|_| SignedImbalance::Positive(Self::PositiveImbalance::zero()))
}

fn evm_reducible_balance(
fn transferrable_balance(
who: &T::AccountId,
preservation: Preservation,
) -> Self::Balance {
Expand Down
4 changes: 2 additions & 2 deletions frame/support/src/traits/tokens/currency.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ pub trait Currency<AccountId> {
/// account.
///
/// Always less than or equal to `balance()`.
fn evm_reducible_balance(
fn transferrable_balance(
who: &AccountId,
preservation: Preservation,
) -> Self::Balance;
Expand Down Expand Up @@ -330,7 +330,7 @@ impl<AccountId> Currency<AccountId> for () {
) -> SignedImbalance<Self::Balance, Self::PositiveImbalance> {
SignedImbalance::Positive(())
}
fn evm_reducible_balance(_: &AccountId, _: Preservation) -> u32 {
fn transferrable_balance(_: &AccountId, _: Preservation) -> u32 {
0
}
}
4 changes: 2 additions & 2 deletions frame/support/src/traits/tokens/currency/reservable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -344,11 +344,11 @@ impl<
) -> SignedImbalance<Self::Balance, Self::PositiveImbalance> {
NamedReservable::make_free_balance_be(who, balance)
}
fn evm_reducible_balance(
fn transferrable_balance(
who: &AccountId,
preservation: Preservation,
) -> Self::Balance {
NamedReservable::evm_reducible_balance(who, preservation)
NamedReservable::transferrable_balance(who, preservation)
}
}
impl<
Expand Down

0 comments on commit 6613fab

Please sign in to comment.