diff --git a/src/lib/utf8.ts b/src/lib/utf8.ts index 3d2db495c0..f627566fed 100644 --- a/src/lib/utf8.ts +++ b/src/lib/utf8.ts @@ -4,10 +4,9 @@ import { fromString } from "uint8arrays/from-string"; import { toString } from "uint8arrays/to-string"; -export const bytesToUtf8 = (bytes: Uint8Array): string => - toString(bytes, "utf-8"); +export const bytesToUtf8 = (b: Uint8Array): string => toString(b, "utf8"); /** * Encode utf-8 string to byte array */ -export const utf8ToBytes = (s: string): Uint8Array => fromString(s, "utf-8"); +export const utf8ToBytes = (s: string): Uint8Array => fromString(s, "utf8");