From 1eb7d6ca671f5207436357d98f8b3aa741304568 Mon Sep 17 00:00:00 2001 From: Kyle Fang Date: Fri, 13 Dec 2024 09:47:35 +0000 Subject: [PATCH] chore: bump --- package.json | 2 +- src/runtime/decoders.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index e148f2c..c52c064 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "clarity-codegen", - "version": "1.0.0-beta.1", + "version": "1.0.0", "main": "./lib/index.js", "module": "./dist/index.js", "types": "./dist/index.d.ts", diff --git a/src/runtime/decoders.ts b/src/runtime/decoders.ts index 89a348c..a10952c 100644 --- a/src/runtime/decoders.ts +++ b/src/runtime/decoders.ts @@ -25,7 +25,8 @@ export const boolResult: Decoder = (result) => { export const principalResult: Decoder = (result) => { if (result.type === ClarityType.PrincipalStandard) { return addressResult(result); - } else if (result.type === ClarityType.PrincipalContract) { + } + if (result.type === ClarityType.PrincipalContract) { return contractResult(result); } throw new Error(`Expected principal, got ${result.type}`);