Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmadkaouk committed Jan 26, 2024
1 parent c848f79 commit 4fa6d38
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions frame/evm/precompile/clear-storage/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ fn test_clear_suicided_contract_succesfull() {
0
);

assert!(pallet_evm::Suicided::<Runtime>::contains_key(
assert!(!pallet_evm::Suicided::<Runtime>::contains_key(
contract_address
));
})
Expand All @@ -94,7 +94,7 @@ fn test_clear_suicided_contract_failed() {
let contract_address = mock_contract_with_entries(1, 10);

// Ensure that the contract is not suicided
assert!(pallet_evm::Suicided::<Runtime>::contains_key(
assert!(!pallet_evm::Suicided::<Runtime>::contains_key(
contract_address
));

Expand Down Expand Up @@ -195,13 +195,13 @@ fn test_clear_suicided_contract_multiple_addresses() {
0
);

assert!(pallet_evm::Suicided::<Runtime>::contains_key(
assert!(!pallet_evm::Suicided::<Runtime>::contains_key(
contract_address1
));
assert!(pallet_evm::Suicided::<Runtime>::contains_key(
assert!(!pallet_evm::Suicided::<Runtime>::contains_key(
contract_address2
));
assert!(pallet_evm::Suicided::<Runtime>::contains_key(
assert!(!pallet_evm::Suicided::<Runtime>::contains_key(
contract_address3
));
})
Expand Down Expand Up @@ -280,42 +280,42 @@ fn test_clear_suicided_no_storage_entries() {
pallet_evm::AccountStorages::<Runtime>::iter_prefix(contract_address1).count(),
0
);
assert!(pallet_evm::Suicided::<Runtime>::contains_key(
assert!(!pallet_evm::Suicided::<Runtime>::contains_key(
contract_address1
));
assert_eq!(
pallet_evm::AccountStorages::<Runtime>::iter_prefix(contract_address2).count(),
0
);
assert!(pallet_evm::Suicided::<Runtime>::contains_key(
assert!(!pallet_evm::Suicided::<Runtime>::contains_key(
contract_address2
));
assert_eq!(
pallet_evm::AccountStorages::<Runtime>::iter_prefix(contract_address3).count(),
0
);
assert!(pallet_evm::Suicided::<Runtime>::contains_key(
assert!(!pallet_evm::Suicided::<Runtime>::contains_key(
contract_address3
));
assert_eq!(
pallet_evm::AccountStorages::<Runtime>::iter_prefix(contract_address4).count(),
0
);
assert!(pallet_evm::Suicided::<Runtime>::contains_key(
assert!(!pallet_evm::Suicided::<Runtime>::contains_key(
contract_address4
));
assert_eq!(
pallet_evm::AccountStorages::<Runtime>::iter_prefix(contract_address4).count(),
0
);
assert!(pallet_evm::Suicided::<Runtime>::contains_key(
assert!(!pallet_evm::Suicided::<Runtime>::contains_key(
contract_address4
));
assert_eq!(
pallet_evm::AccountStorages::<Runtime>::iter_prefix(contract_address5).count(),
0
);
assert!(pallet_evm::Suicided::<Runtime>::contains_key(
assert!(!pallet_evm::Suicided::<Runtime>::contains_key(
contract_address5
));
})
Expand Down Expand Up @@ -349,7 +349,7 @@ fn test_clear_suicided_entry_limit() {
pallet_evm::AccountStorages::<Runtime>::iter_prefix(contract_address1).count(),
0
);
assert!(pallet_evm::Suicided::<Runtime>::contains_key(
assert!(!pallet_evm::Suicided::<Runtime>::contains_key(
contract_address1
));

Expand Down

0 comments on commit 4fa6d38

Please sign in to comment.