Skip to content

Commit

Permalink
Include ED into account_basic balance data extraction (#98) (#105) (
Browse files Browse the repository at this point in the history
#122)

Include ED into account_basic balance data extraction
  • Loading branch information
dmitrylavrenov authored Jun 10, 2024
1 parent ee14c57 commit f029f45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frame/evm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -861,9 +861,9 @@ impl<T: Config> Pallet<T> {
let account_id = T::AddressMapping::into_account_id(*address);

let nonce = T::AccountProvider::account_nonce(&account_id);
// keepalive `true` takes into account ExistentialDeposit as part of what's considered liquid balance.
// Expendable preservation takes into account ExistentialDeposit as part of what's considered liquid balance.
let balance =
T::Currency::reducible_balance(&account_id, Preservation::Preserve, Fortitude::Polite);
T::Currency::reducible_balance(&account_id, Preservation::Expendable, Fortitude::Polite);

(
Account {
Expand Down

0 comments on commit f029f45

Please sign in to comment.