Skip to content

Commit

Permalink
null condition
Browse files Browse the repository at this point in the history
  • Loading branch information
owl352 committed Sep 20, 2024
1 parent 42577fc commit 9671a13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/services/dashd.js
Original file line number Diff line number Diff line change
Expand Up @@ -2250,7 +2250,7 @@ Dash.prototype.getDetailedTransaction = function(txid, callback) {
for(var outputIndex = 0; outputIndex < result.vout.length; outputIndex++) {
var out = result.vout[outputIndex];
tx.outputSatoshis += out.valueSat;
var address = out.scriptPubKey.address;
var address = out.scriptPubKey.address ?? null;
if (out.scriptPubKey && out.scriptPubKey.addresses && out.scriptPubKey.addresses.length === 1) {
address = out.scriptPubKey.addresses[0];
}
Expand Down

0 comments on commit 9671a13

Please sign in to comment.