Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
perekopskiy committed May 6, 2024
1 parent d67b036 commit b773b0b
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions core/lib/zksync_core/src/state_keeper/io/persistence.rs
Original file line number Diff line number Diff line change
Expand Up @@ -352,21 +352,18 @@ mod tests {
let mut batch_result = default_vm_batch_result();
batch_result
.final_execution_state
.deduplicated_storage_log_queries = storage_logs
.iter()
.map(|query| query.log_query.clone())
.collect();
.deduplicated_storage_log_queries =
storage_logs.iter().map(|query| query.log_query).collect();
batch_result.initially_written_slots = Some(
storage_logs
.into_iter()
.filter_map(|log| {
(log.log_type == StorageLogQueryType::InitialWrite).then(|| {
let key = StorageKey::new(
AccountTreeId::new(log.log_query.address),
u256_to_h256(log.log_query.key),
);
key.hashed_key()
})
.filter(|&log| log.log_type == StorageLogQueryType::InitialWrite)
.map(|log| {
let key = StorageKey::new(
AccountTreeId::new(log.log_query.address),
u256_to_h256(log.log_query.key),
);
key.hashed_key()
})
.collect(),
);
Expand Down

0 comments on commit b773b0b

Please sign in to comment.