diff --git a/lib/services/dashd.js b/lib/services/dashd.js index 15e1e7f01..07503c2e0 100644 --- a/lib/services/dashd.js +++ b/lib/services/dashd.js @@ -2253,6 +2253,8 @@ Dash.prototype.getDetailedTransaction = function(txid, callback) { var address = null; if (out.scriptPubKey && out.scriptPubKey.addresses && out.scriptPubKey.addresses.length === 1) { address = out.scriptPubKey.addresses[0]; + } else if(out.scriptPubKey.address){ + address = out.scriptPubKey.address; } tx.outputs.push({ satoshis: out.valueSat, @@ -2280,23 +2282,17 @@ Dash.prototype.getDetailedTransaction = function(txid, callback) { if (result.proRegTx !== undefined) { tx.proRegTx = result.proRegTx; - } - if (result.proUpServTx !== undefined) { + }else if (result.proUpServTx !== undefined) { tx.proUpServTx = result.proUpServTx; - } - if (result.proUpRegTx !== undefined) { + }else if (result.proUpRegTx !== undefined) { tx.proUpRegTx = result.proUpRegTx; - } - if (result.proUpRevTx !== undefined) { + }else if (result.proUpRevTx !== undefined) { tx.proUpRevTx = result.proUpRevTx; - } - if (result.cbTx !== undefined) { + }else if (result.cbTx !== undefined) { tx.cbTx = result.cbTx; - } - if (result.qcTx !== undefined) { + }else if (result.qcTx !== undefined) { tx.qcTx = result.qcTx; - } - if (result.mnhfTx !== undefined) { + }else if (result.mnhfTx !== undefined) { tx.mnhfTx = result.mnhfTx; } }