Skip to content

Commit

Permalink
edit comments
Browse files Browse the repository at this point in the history
  • Loading branch information
brentstone authored and tzemanovic committed Jan 25, 2024
1 parent 343f27f commit 790acb7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/state/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -365,8 +365,8 @@ where
}
}

/// Returns a value from the specified subspace at the given height or the
/// last committed height when 0 and the gas cost.
/// Returns a value from the specified subspace at the given height (or the
/// last committed height when 0) and the gas cost.
pub fn read_with_height(
&self,
key: &Key,
Expand Down Expand Up @@ -654,7 +654,7 @@ where
let key = Key::parse(old.0.clone())
.expect("the key should be parsable");

if !(self.merkle_tree_key_filter)(&key) {
if (self.merkle_tree_key_filter)(&key) {
tree.delete(&key)?;
}

Expand Down
1 change: 1 addition & 0 deletions crates/state/src/write_log.rs
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,7 @@ impl WriteLog {
}
}

// Replay protections specifically
for (hash, entry) in self.replay_protection.iter() {
match entry {
ReProtStorageModification::Write => storage
Expand Down

0 comments on commit 790acb7

Please sign in to comment.