Skip to content

Commit

Permalink
Check removal status
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrylavrenov committed Mar 28, 2024
1 parent 037ec15 commit 80f7854
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frame/evm-balances/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 80f7854

Please sign in to comment.