Skip to content

Commit 9671a13

Browse files
committed
null condition
1 parent 42577fc commit 9671a13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/services/dashd.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2250,7 +2250,7 @@ Dash.prototype.getDetailedTransaction = function(txid, callback) {
22502250
for(var outputIndex = 0; outputIndex < result.vout.length; outputIndex++) {
22512251
var out = result.vout[outputIndex];
22522252
tx.outputSatoshis += out.valueSat;
2253-
var address = out.scriptPubKey.address;
2253+
var address = out.scriptPubKey.address ?? null;
22542254
if (out.scriptPubKey && out.scriptPubKey.addresses && out.scriptPubKey.addresses.length === 1) {
22552255
address = out.scriptPubKey.addresses[0];
22562256
}

0 commit comments

Comments
 (0)