Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TX addresses field changed to address (deprecated) #107

Merged
merged 11 commits into from
Sep 26, 2024
20 changes: 8 additions & 12 deletions lib/services/dashd.js
Original file line number Diff line number Diff line change
Expand Up @@ -2253,6 +2253,8 @@ Dash.prototype.getDetailedTransaction = function(txid, callback) {
var address = null;
if (out.scriptPubKey && out.scriptPubKey.addresses && out.scriptPubKey.addresses.length === 1) {
pshenmic marked this conversation as resolved.
Show resolved Hide resolved
address = out.scriptPubKey.addresses[0];
} else if(out.scriptPubKey.address){
address = out.scriptPubKey.address;
}
tx.outputs.push({
satoshis: out.valueSat,
Expand Down Expand Up @@ -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;
}
}
Expand Down
Loading