Skip to content

Commit

Permalink
Include ED into account_basic balance data extraction (#84)
Browse files Browse the repository at this point in the history
Include `ED` into `account_basic` balance data extraction (#72)

Include ED into account_basic balance data extraction
  • Loading branch information
dmitrylavrenov authored Oct 31, 2023
1 parent 37ddc20 commit 3d322e1
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 @@ -746,8 +746,8 @@ 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.
let balance = T::Currency::reducible_balance(&account_id, true);
// keepalive `false` takes into account ExistentialDeposit as part of what's considered liquid balance.
let balance = T::Currency::reducible_balance(&account_id, false);

(
Account {
Expand Down

0 comments on commit 3d322e1

Please sign in to comment.