From 931af77ed61df647d55a8adbfaf5d61864acd6e6 Mon Sep 17 00:00:00 2001 From: Fly <3713548+flyinghuman@users.noreply.github.com> Date: Mon, 29 Oct 2018 09:41:57 +0100 Subject: [PATCH] Update explorer.js --- lib/explorer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/explorer.js b/lib/explorer.js index 56908e2a6..33724f050 100644 --- a/lib/explorer.js +++ b/lib/explorer.js @@ -284,7 +284,7 @@ module.exports = { module.exports.syncLoop(vout.length, function (loop) { var i = loop.iteration(); // make sure vout has an address - if (vout[i].scriptPubKey.type != 'nonstandard' && vout[i].scriptPubKey.type != 'nulldata') { + if (vout[i].scriptPubKey.type != 'nonstandard' && vout[i].scriptPubKey.type != 'nulldata' && vout[i].scriptPubKey.hasOwnProperty("addresses")) { // check if vout address is unique, if so add it array, if not add its amount to existing index //console.log('vout:' + i + ':' + txid); module.exports.is_unique(arr_vout, vout[i].scriptPubKey.addresses[0], function(unique, index) {