sha256 returns a promise!

This commit is contained in:
fiatjaf
2021-02-18 23:53:55 -03:00
parent 789cba142e
commit 0c0f9d0e76

View File

@@ -128,7 +128,7 @@ export function relayConnect(url, onNotice) {
return {
url,
sub: sub.bind(null, sha256(Math.random().toString())),
sub: sub.bind(null, await sha256(Math.random().toString())),
async publish(event) {
trySend(JSON.stringify(['EVENT', event]))
},