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", 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();