From e0859fa9d28e6e184b1efaa4ba05f21e788cd542 Mon Sep 17 00:00:00 2001 From: Mahmoud Aboelenein Date: Thu, 18 Apr 2024 16:50:02 +0200 Subject: [PATCH 1/2] fix error condition for unisat address purposes --- src/adapters/unisat.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/adapters/unisat.ts b/src/adapters/unisat.ts index 624cc65..f97e6d0 100644 --- a/src/adapters/unisat.ts +++ b/src/adapters/unisat.ts @@ -63,7 +63,7 @@ class UnisatAdapter extends SatsConnectAdapter { private async getAccounts(params: Params<'getAccounts'>): Promise> { const { purposes } = params; - if (!purposes.includes(AddressPurpose.Stacks)) { + if (purposes.includes(AddressPurpose.Stacks)) { throw new Error('Only bitcoin addresses are supported'); } const accounts = await window.unisat.requestAccounts(); From a0293175e6e625a65f40ce541d2c055787d8c1ab Mon Sep 17 00:00:00 2001 From: Mahmoud Aboelenein Date: Thu, 18 Apr 2024 16:51:08 +0200 Subject: [PATCH 2/2] update version --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index be65e77..5959285 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@sats-connect/core", - "version": "0.0.6", + "version": "0.0.7", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@sats-connect/core", - "version": "0.0.6", + "version": "0.0.7", "license": "ISC", "dependencies": { "axios": "1.6.8", diff --git a/package.json b/package.json index a151357..f6898ad 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@sats-connect/core", - "version": "0.0.6", + "version": "0.0.7", "main": "dist/index.mjs", "module": "dist/index.mjs", "types": "dist/index.d.mts",