Skip to content

Commit

Permalink
soundness fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lightsing committed Sep 20, 2024
1 parent 062292e commit 47ce0ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/primitives/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ pub trait Block: Debug {
/// Update zktrie state from trace
#[inline]
fn build_zktrie_db(&self, zktrie_db: &mut ZkMemoryDb) {
for (k, bytes) in self.flatten_proofs() {
zktrie_db.add_node_bytes(bytes, Some(k.as_slice())).unwrap();
for (_, bytes) in self.flatten_proofs() {
zktrie_db.add_node_bytes(bytes, None).unwrap();
}
}

Expand Down

0 comments on commit 47ce0ce

Please sign in to comment.