mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +00:00
fix: don't write zero slots from genesis to state (#1936)
This commit is contained in:
@ -103,6 +103,9 @@ pub fn insert_genesis_state<DB: Database>(
|
||||
// insert plain storages
|
||||
if let Some(storage) = &account.storage {
|
||||
for (&key, &value) in storage {
|
||||
if value.is_zero() {
|
||||
continue
|
||||
}
|
||||
storage_cursor.upsert(*address, StorageEntry { key, value: value.into() })?
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user