bitcore-channel
bitcore-channel copied to clipboard
validateRefund wipes refundTx output
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();