Skip to content

Commit

Permalink
Update crates/p2p_proto/src/common.rs
Browse files Browse the repository at this point in the history
Co-authored-by: sistemd <[email protected]>
  • Loading branch information
kkovaacs and sistemd committed Sep 16, 2024
1 parent 03d9788 commit 8c5af75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/p2p_proto/src/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ impl TryFromProtobuf<proto::common::Hash256> for Hash256 {
if input.elements.len() != H256::len_bytes() {
return Err(std::io::Error::new(
std::io::ErrorKind::InvalidData,
format!("Invalid field element {field_name}: expected to be 32 bytes long"),
format!("Invalid field element {field_name}: expected to be {} bytes long", H256::len_bytes()),
));
}
let hash = H256::from_slice(&input.elements);
Expand Down

0 comments on commit 8c5af75

Please sign in to comment.