Add removed comment from valueToText (#10477)
This commit is contained in:
parent
de6c21b9da
commit
6fcaea68a4
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user