Skip to content

Commit

Permalink
frame-support: Print key as hex for corrupted state (#2779)
Browse files Browse the repository at this point in the history
  • Loading branch information
bkchr authored Dec 22, 2023
1 parent 8d459d9 commit 46dd4b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions substrate/frame/support/src/storage/unhashed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ pub fn get<T: Decode + Sized>(key: &[u8]) -> Option<T> {
// TODO #3700: error should be handleable.
log::error!(
target: "runtime::storage",
"Corrupted state at `{:?}: {:?}`",
key,
"Corrupted state at `{}`: {:?}",
array_bytes::bytes2hex("0x", key),
e,
);
None
Expand Down

0 comments on commit 46dd4b8

Please sign in to comment.