From 389a15eef41c941e36d2b08ca47c775f13bbba55 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 17 Dec 2023 16:55:35 -0500 Subject: [PATCH] fix: on existing entry, need to update the entry data --- src/methods/registry.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/methods/registry.ts b/src/methods/registry.ts index 25d710d..a08e265 100644 --- a/src/methods/registry.ts +++ b/src/methods/registry.ts @@ -163,11 +163,13 @@ export async function createEntry( } if (existing) { - if (equalBytes(entry.data, cid.toRegistryEntry())) { + const newEntry = cid.toRegistryEntry(); + if (equalBytes(entry.data, newEntry)) { return entry; } entry.revision++; + entry.data = newEntry; } const signedEntry = signRegistryEntry({ kp: sk,