Skip to content

Commit

Permalink
fix: filter out initial writes to zero
Browse files Browse the repository at this point in the history
  • Loading branch information
joonazan committed May 27, 2024
1 parent 8defb4a commit cef72f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/world_diff.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ impl WorldDiff {
.as_ref()
.iter()
.filter_map(|(key, &(tx_number, value))| {
if self.storage_initial_values[key] == Some(value) {
if self.storage_initial_values[key].unwrap_or_default() == value {
None
} else {
Some((*key, (tx_number, self.storage_initial_values[key], value)))
Expand Down

0 comments on commit cef72f5

Please sign in to comment.