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); }