From 27c4e9407241c372ee69133793104fdfe8ba2bfe Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Mon, 11 Dec 2023 22:55:02 -0500 Subject: [PATCH] refactor: createEntry should return SignedRegistryEntry --- src/methods/registry.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/methods/registry.ts b/src/methods/registry.ts index a513237..ff8a772 100644 --- a/src/methods/registry.ts +++ b/src/methods/registry.ts @@ -139,5 +139,9 @@ export async function createEntry( revision, }; - return this.publishEntry(signRegistryEntry(entry)); + const signedEntry = signRegistryEntry(entry); + + await this.publishEntry(signedEntry); + + return signedEntry; }