frame-support: Print key as hex for corrupted state (#2779)

This commit is contained in:
Bastian Köcher
2023-12-22 09:50:35 +01:00
committed by GitHub
parent 8d459d9578
commit 46dd4b8f53
@@ -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