chore: use U256::is_zero (#5616)

This commit is contained in:
Matthias Seitz
2023-11-28 16:44:27 +01:00
committed by GitHub
parent ae6f1e39c0
commit 18d563dd27
8 changed files with 11 additions and 11 deletions

View File

@ -143,7 +143,7 @@ impl BundleStateWithReceipts {
for (key, value) in account.storage.iter() {
let hashed_key = keccak256(B256::new(key.to_be_bytes()));
if value.present_value == U256::ZERO {
if value.present_value.is_zero() {
hashed_storage.insert_zero_valued_slot(hashed_key);
} else {
hashed_storage.insert_non_zero_valued_storage(hashed_key, value.present_value);