Browse Source

get network from first output when multiple outputs in proposal

activeAddress
Gregg Zigler 10 years ago
parent
commit
bc565f671a
  1. 3
      lib/model/txproposal.js

3
lib/model/txproposal.js

@ -157,7 +157,8 @@ TxProposal.prototype.getBitcoreTx = function() {
};
TxProposal.prototype.getNetworkName = function() {
return Bitcore.Address(this.toAddress).toObject().network;
var someAddress = this.toAddress || this.outputs[0].toAddress;
return Bitcore.Address(someAddress).toObject().network;
};
TxProposal.prototype.getRawTx = function() {

Loading…
Cancel
Save