Skip to content

Commit

Permalink
Apply suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
Nashtare committed Nov 7, 2024
1 parent c6581aa commit 6c4ebaf
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions trace_decoder/src/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,12 @@ pub fn entrypoint(
contract_code: contract_code
.into_iter()
.map(|it| match &world {
Either::Left(_type1) => (KeccakHash::hash(&it), it),
Either::Right(_type2) => (PoseidonHash::hash(&it), it),
Either::Left(_type1) => {
(<Type1World as World>::CodeHasher::hash(&it), it)
}
Either::Right(_type2) => {
(<Type2World as World>::CodeHasher::hash(&it), it)
}
})
.collect(),
block_metadata: b_meta.clone(),
Expand Down

0 comments on commit 6c4ebaf

Please sign in to comment.