fix input/output calls.

This commit is contained in:
Christopher Jeffrey 2016-01-19 15:58:12 -08:00
parent ebbb417283
commit 1258cbbbd4

View File

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