bip70: fix payment serialization.

This commit is contained in:
Christopher Jeffrey 2016-11-27 04:33:59 -08:00
parent dd2d9f48bd
commit 89f86ae6c5
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -104,7 +104,7 @@ Payment.prototype.toRaw = function toRaw(writer) {
for (i = 0; i < this.transactions.length; i++) {
tx = this.transactions[i];
this.writeFieldBytes(2, tx.toRaw());
bw.writeFieldBytes(2, tx.toRaw());
}
for (i = 0; i < this.refundTo.length; i++) {