forked from Kieran/snort
fix nip7 signer
This commit is contained in:
parent
45a0ef4445
commit
64d64b29c3
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@snort/system-react",
|
||||
"version": "1.0.10",
|
||||
"version": "1.0.11",
|
||||
"description": "React hooks for @snort/system",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
@ -16,8 +16,8 @@
|
||||
"dist"
|
||||
],
|
||||
"dependencies": {
|
||||
"@snort/system": "^1.0.15",
|
||||
"@snort/shared": "^1.0.4",
|
||||
"react": "^18.2.0"
|
||||
"react": "^18.2.0",
|
||||
"@snort/system": "^1.0.16",
|
||||
"@snort/shared": "^1.0.4"
|
||||
}
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@snort/system",
|
||||
"version": "1.0.15",
|
||||
"version": "1.0.16",
|
||||
"description": "Snort nostr system package",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
|
@ -30,7 +30,7 @@ export class Nip7Signer implements EventSigner {
|
||||
if (!window.nostr) {
|
||||
throw new Error("Cannot use NIP-07 signer, not found!");
|
||||
}
|
||||
return await window.nostr.getPublicKey();
|
||||
return await barrierQueue(Nip7Queue, () => unwrap(window.nostr).getPublicKey());
|
||||
}
|
||||
|
||||
async nip4Encrypt(content: string, key: string): Promise<string> {
|
||||
|
Loading…
Reference in New Issue
Block a user