mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
refactor: some small refactoring (#9657)
This commit is contained in:
@ -245,7 +245,7 @@ where
|
||||
let mut old_entries: Vec<_> = new_entries
|
||||
.into_iter()
|
||||
.filter_map(|entry| {
|
||||
let old = if entry.value != U256::ZERO {
|
||||
let old = if !entry.value.is_zero() {
|
||||
storage.insert(entry.key, entry.value)
|
||||
} else {
|
||||
let old = storage.remove(&entry.key);
|
||||
|
||||
Reference in New Issue
Block a user