From e86a5e16c3e1f68a05658ec0a4f153526c01f50f Mon Sep 17 00:00:00 2001 From: 0xPatrick Date: Wed, 11 Dec 2024 15:36:28 -0500 Subject: [PATCH] chore: `decodeAddressHook` `throws` annotation --- packages/cosmic-proto/src/address-hooks.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/cosmic-proto/src/address-hooks.js b/packages/cosmic-proto/src/address-hooks.js index aaa119f43a1..c1dcb2e415a 100644 --- a/packages/cosmic-proto/src/address-hooks.js +++ b/packages/cosmic-proto/src/address-hooks.js @@ -192,6 +192,7 @@ harden(encodeAddressHook); * @param {string} addressHook * @param {number} [charLimit] * @returns {{ baseAddress: string; query: HookQuery }} + * @throws {Error} if no hook string or hook string does not start with `?` */ export const decodeAddressHook = (addressHook, charLimit) => { const { baseAddress, hookData } = splitHookedAddress(addressHook, charLimit);