From 444d3b5728bce28ecf2151c63005d09a3c2d770e Mon Sep 17 00:00:00 2001 From: Dmitry Lavrenov <39522748+dmitrylavrenov@users.noreply.github.com> Date: Mon, 19 Feb 2024 14:00:33 +0300 Subject: [PATCH] Include `ED` into `account_basic` balance data extraction (#98) (#105) Include ED into account_basic balance data extraction --- frame/evm/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frame/evm/src/lib.rs b/frame/evm/src/lib.rs index 017e87b76c..0cb67eca75 100644 --- a/frame/evm/src/lib.rs +++ b/frame/evm/src/lib.rs @@ -861,9 +861,9 @@ impl Pallet { 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 {