fix input/output calls.
This commit is contained in:
parent
ebbb417283
commit
1258cbbbd4
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user