Skip to content

Commit

Permalink
Add removed comment from valueToText (#10477)
Browse files Browse the repository at this point in the history
  • Loading branch information
TarikGul authored Apr 16, 2024
1 parent de6c21b commit 6fcaea6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/react-params/src/valueToText.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ export default function valueToText (type: string, value: Codec | undefined | nu
// eslint-disable-next-line @typescript-eslint/unbound-method
['Bytes', 'Raw', 'Option<Keys>', 'Keys'].includes(type) && isFunction(value.toU8a)
? u8aToHex(value.toU8a(true))
// HACK Handle Keys as hex-only (this should go away once the node value is
// consistently swapped to `Bytes`)
: type === 'Vec<(ValidatorId,Keys)>'
? toHumanJson(formatKeys(value as unknown as [ValidatorId, Keys][]))
: value instanceof Raw
Expand Down

0 comments on commit 6fcaea6

Please sign in to comment.