@zerochain/0chain
Advanced tools
Comparing version 1.3.78 to 1.3.79
{ | ||
"name": "@zerochain/0chain", | ||
"version": "1.3.78", | ||
"version": "1.3.79", | ||
"description": "js client library to interact with 0chain Blockchain", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -24,3 +24,3 @@ /* | ||
async function blsSign(hash) { | ||
if (!bridge.jsProxy?.secretKey) { | ||
if (!bridge.jsProxy && !bridge.jsProxy.secretKey) { | ||
const errMsg = 'err: bls.secretKey is not initialized'; | ||
@@ -153,3 +153,3 @@ console.error(errMsg); | ||
if (resp?.error) { | ||
if (resp && resp.error) { | ||
rej(new Error(resp.error)); | ||
@@ -156,0 +156,0 @@ } else { |
186830