mirror of
https://github.com/nbd-wtf/nostr-tools.git
synced 2025-12-12 01:58:51 +00:00
sha256 returns a promise!
This commit is contained in:
2
relay.js
2
relay.js
@@ -128,7 +128,7 @@ export function relayConnect(url, onNotice) {
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
url,
|
url,
|
||||||
sub: sub.bind(null, sha256(Math.random().toString())),
|
sub: sub.bind(null, await sha256(Math.random().toString())),
|
||||||
async publish(event) {
|
async publish(event) {
|
||||||
trySend(JSON.stringify(['EVENT', event]))
|
trySend(JSON.stringify(['EVENT', event]))
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user