Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sorpaas committed Oct 5, 2023
1 parent cd02a64 commit 93ee23c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion frame/evm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,7 @@ impl<T: Config> Pallet<T> {

/// Create an account.
pub fn create_account(address: H160, code: Vec<u8>) {
if <Suicided<T>>::contains_key(&address) {
if <Suicided<T>>::contains_key(address) {
// This branch should never trigger, because when Suicided
// contains an address, then its nonce will be at least one,
// which causes CreateCollision error in EVM, but we add it
Expand Down
3 changes: 1 addition & 2 deletions frame/evm/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1037,8 +1037,7 @@ fn handle_sufficient_reference() {
assert_eq!(account_2.sufficients, 1);
EVM::remove_account(&addr_2);
let account_2 = frame_system::Account::<Test>::get(substrate_addr_2);
// We decreased the sufficient reference by 1 on removing the account.
assert_eq!(account_2.sufficients, 0);
assert_eq!(account_2.sufficients, 1);
});
}

Expand Down

0 comments on commit 93ee23c

Please sign in to comment.