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
Include ED into account_basic balance data extraction
  • Loading branch information
dmitrylavrenov committed Oct 21, 2024
1 parent 501c85a commit df44931
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 @@ -853,9 +853,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 df44931

Please sign in to comment.