@sats-connect/core 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.mjs +1 -1
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -498,7 +498,7 @@ var UnisatAdapter = class extends SatsConnectAdapter {
498
498
  id = DefaultAdaptersInfo.unisat.id;
499
499
  async getAccounts(params) {
500
500
  const { purposes } = params;
501
- if (!purposes.includes("stacks" /* Stacks */)) {
501
+ if (purposes.includes("stacks" /* Stacks */)) {
502
502
  throw new Error("Only bitcoin addresses are supported");
503
503
  }
504
504
  const accounts = await window.unisat.requestAccounts();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sats-connect/core",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "main": "dist/index.mjs",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.mts",