diff --git a/js/src/record_v2/const.ts b/js/src/record_v2/const.ts index 61b68e50..1989598b 100644 --- a/js/src/record_v2/const.ts +++ b/js/src/record_v2/const.ts @@ -47,6 +47,7 @@ export const UTF8_ENCODED = new Set([ Record.TXT, Record.CNAME, Record.BTC, + Record.IPNS, ]); /** diff --git a/js/src/types/record.ts b/js/src/types/record.ts index a4324a2b..cca51803 100644 --- a/js/src/types/record.ts +++ b/js/src/types/record.ts @@ -28,6 +28,7 @@ export enum Record { TXT = "TXT", Background = "background", BASE = "BASE", + IPNS = "IPNS", } export const RECORD_V1_SIZE: Map = new Map([ diff --git a/js/tests/records-v2.test.ts b/js/tests/records-v2.test.ts index 510b9577..0e337fe6 100644 --- a/js/tests/records-v2.test.ts +++ b/js/tests/records-v2.test.ts @@ -58,6 +58,10 @@ test("Records V2 des/ser", () => { content: "username", record: Record.Discord, }, + { + content: "k51qzi5uqu5dlvj2baxnqndepeb86cbk3ng7n3i46uzyxzyqj2xjonzllnv0v8", + record: Record.IPNS, + }, ]; items.forEach((e) => {