bitcore-channel icon indicating copy to clipboard operation
bitcore-channel copied to clipboard

validateRefund wipes refundTx output

Open illuzen opened this issue 9 years ago • 0 comments

the first line in validateRefund:

refund = new Refund(refund);

overwrites some parts of refund, eliminating the output, which is immediately referenced in the third line in validateRefund:

var receivedAddress = new Address(refund.outputs[0].script, this.network).toString();

illuzen avatar Jun 06 '15 01:06 illuzen