Skip to content

Commit

Permalink
Merge pull request #9 from secretkeylabs/fix/unisat-get-accounts
Browse files Browse the repository at this point in the history
fix/unisat-get-accounts
  • Loading branch information
m-aboelenein authored Apr 18, 2024
2 parents 3212599 + a029317 commit a480d42
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/adapters/unisat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class UnisatAdapter extends SatsConnectAdapter {

private async getAccounts(params: Params<'getAccounts'>): Promise<Return<'getAccounts'>> {
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();
Expand Down

0 comments on commit a480d42

Please sign in to comment.