Skip to content

Commit

Permalink
code is handled
Browse files Browse the repository at this point in the history
  • Loading branch information
xlc committed Nov 2, 2023
1 parent d5b32fa commit 2b09256
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/core/src/utils/decoder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,6 @@ export const decodeKeyValue = (

const decodeValue = () => {
if (!value) return null
if (storage.section === 'substrate' && storage.method === 'code') {
return `:code blake2_256 ${blake2AsHex(value, 256)} (${hexToU8a(value).length} bytes)`
}
return meta.registry.createType(decodedKey.outputType, hexToU8a(value))[toHuman ? 'toHuman' : 'toJSON']()
}

Expand Down

0 comments on commit 2b09256

Please sign in to comment.