diff --git a/frame/evm-balances/src/tests.rs b/frame/evm-balances/src/tests.rs index e9f7370aae..550c923286 100644 --- a/frame/evm-balances/src/tests.rs +++ b/frame/evm-balances/src/tests.rs @@ -2,6 +2,7 @@ use frame_support::{assert_noop, assert_ok, weights::Weight}; use pallet_evm::{FeeCalculator, FixedGasWeightMapping, GasWeightMapping, Runner}; +use pallet_evm_system::AccountRemovalStatus; use sp_core::{H160, U256}; use sp_runtime::traits::UniqueSaturatedInto; use sp_std::str::FromStr; @@ -367,7 +368,7 @@ fn evm_system_removing_account_non_zero_balance() { assert_eq!(EvmBalances::free_balance(&contract), 1000); // Invoke the function under test. - EVM::remove_account(&contract); + assert_eq!(EVM::remove_account(&contract), AccountRemovalStatus::Exists); // Assert state changes. assert_eq!(EvmBalances::free_balance(&contract), 1000);