From 1258cbbbd40d511e428f9fc82f78c03fb8625eec Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Tue, 19 Jan 2016 15:58:12 -0800 Subject: [PATCH] fix input/output calls. --- lib/bcoin/tx.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/bcoin/tx.js b/lib/bcoin/tx.js index 885ada51..04c540d0 100644 --- a/lib/bcoin/tx.js +++ b/lib/bcoin/tx.js @@ -42,14 +42,14 @@ function TX(data, block) { if (data.inputs) { assert(this.inputs.length === 0); data.inputs.forEach(function(input) { - this.inputs.push(bcoin.input(input)); + this.input(input); }, this); } if (data.outputs) { assert(this.outputs.length === 0); data.outputs.forEach(function(output) { - this.outputs.push(bcoin.output(output)); + this.output(output); }, this); }