Skip to content

Commit

Permalink
Assert evm system account existence for currency_deposit_creating_wor…
Browse files Browse the repository at this point in the history
…ks test
  • Loading branch information
dmitrylavrenov committed Jun 19, 2023
1 parent 294eb6d commit 9ccbaf9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frame/evm-balances/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ fn currency_deposit_creating_works() {
// Prepare test preconditions.
let charlie = H160::from_str("1000000000000000000000000000000000000003").unwrap();
let deposited_amount = 10;
assert!(!EvmSystem::account_exists(&charlie));

// Set block number to enable events.
System::set_block_number(1);
Expand All @@ -217,6 +218,7 @@ fn currency_deposit_creating_works() {
who: charlie,
amount: deposited_amount,
}));
assert!(EvmSystem::account_exists(&charlie));
});
}

Expand Down

0 comments on commit 9ccbaf9

Please sign in to comment.