Skip to content

Commit ce0523e

Browse files
authored
Raw toHuman Ascii detection (#2455)
1 parent eb0370b commit ce0523e

File tree

1 file changed

+1
-1
lines changed
  • packages/types/src/codec

1 file changed

+1
-1
lines changed

packages/types/src/codec/Raw.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export default class Raw extends Uint8Array implements IU8a {
117117
* @description Converts the Object to to a human-friendly JSON, with additional fields, expansion and formatting of information
118118
*/
119119
public toHuman (): AnyJson {
120-
return this.isUtf8
120+
return this.isAscii
121121
? this.toUtf8()
122122
: this.toJSON();
123123
}

0 commit comments

Comments
 (0)