Skip to content

Commit

Permalink
fix digest for [T]
Browse files Browse the repository at this point in the history
  • Loading branch information
grishasobol committed Aug 28, 2024
1 parent d00cd1a commit 042c8bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ethexe/signer/src/digest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ impl<'a, T: ToDigest> FromIterator<&'a T> for Digest {
impl<T: ToDigest> ToDigest for [T] {
fn update_hasher(&self, hasher: &mut sha3::Keccak256) {
for item in self {
item.update_hasher(hasher);
hasher.update(item.to_digest().as_ref());
}
}
}
Expand Down

0 comments on commit 042c8bb

Please sign in to comment.