Comparing version 0.1.4 to 0.1.5
@@ -113,3 +113,3 @@ "use strict"; | ||
if (conf.bLight) | ||
requestFromLightVendorWithRetries('light/get_definition', aa_address, response => cb(response.error, response)); | ||
requestFromLightVendorWithRetries('light/get_definition', aa_address, response => cb(response ? response.error : null, response)); | ||
else | ||
@@ -170,3 +170,3 @@ storage.readAADefinition(db, aa_address, arrDefinition => { | ||
network.requestFromLightVendor(command, params, (ws, request, response) => { | ||
if (response.error && Object.keys(response).length === 1) { | ||
if (response && response.error && Object.keys(response).length === 1) { | ||
if (response.error.startsWith('[internal]') || response.error.startsWith('[connect to light vendor failed]')) { | ||
@@ -173,0 +173,0 @@ console.log(`got ${response.error} from ${command} ${JSON.stringify(params)}`); |
@@ -19,2 +19,3 @@ const headlessWallet = require('headless-obyte'); | ||
async function start() { | ||
await headlessWallet.waitTillReady(); | ||
return new Promise(resolve => { | ||
@@ -21,0 +22,0 @@ headlessWallet.readFirstAddress(async (addr) => { |
{ | ||
"name": "aabot", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"engines": { | ||
@@ -5,0 +5,0 @@ "node": ">=8" |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
43846
929