From 89f86ae6c5de2473149d285c2bcab84c6aefe110 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Sun, 27 Nov 2016 04:33:59 -0800 Subject: [PATCH] bip70: fix payment serialization. --- lib/bip70/payment.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bip70/payment.js b/lib/bip70/payment.js index cdb8da07..bc34b141 100644 --- a/lib/bip70/payment.js +++ b/lib/bip70/payment.js @@ -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++) {