Skip to content

Commit

Permalink
tweak Debug for AppHash
Browse files Browse the repository at this point in the history
  • Loading branch information
hdevalence committed Jul 30, 2021
1 parent 8400186 commit 36069f3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tendermint/src/hash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,11 @@ impl AsRef<[u8]> for AppHash {

impl Debug for AppHash {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "hash::AppHash({:?})", self.0)
write!(
f,
"AppHash({})",
Hex::upper_case().encode_to_string(&self.0).unwrap()
)
}
}

Expand Down

0 comments on commit 36069f3

Please sign in to comment.