mirror of
https://github.com/alexgo-io/clarity-codegen.git
synced 2026-01-12 14:34:34 +08:00
chore: bump
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -25,7 +25,8 @@ export const boolResult: Decoder<boolean> = (result) => {
|
||||
export const principalResult: Decoder<string> = (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}`);
|
||||
|
||||
Reference in New Issue
Block a user