diff --git a/packages/types/src/codec/Raw.ts b/packages/types/src/codec/Raw.ts index 74b2fa4ec6..53f128f001 100644 --- a/packages/types/src/codec/Raw.ts +++ b/packages/types/src/codec/Raw.ts @@ -117,7 +117,7 @@ export default class Raw extends Uint8Array implements IU8a { * @description Converts the Object to to a human-friendly JSON, with additional fields, expansion and formatting of information */ public toHuman (): AnyJson { - return this.isUtf8 + return this.isAscii ? this.toUtf8() : this.toJSON(); }