fix input/output calls.
This commit is contained in:
parent
ebbb417283
commit
1258cbbbd4
@ -42,14 +42,14 @@ function TX(data, block) {
|
|||||||
if (data.inputs) {
|
if (data.inputs) {
|
||||||
assert(this.inputs.length === 0);
|
assert(this.inputs.length === 0);
|
||||||
data.inputs.forEach(function(input) {
|
data.inputs.forEach(function(input) {
|
||||||
this.inputs.push(bcoin.input(input));
|
this.input(input);
|
||||||
}, this);
|
}, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (data.outputs) {
|
if (data.outputs) {
|
||||||
assert(this.outputs.length === 0);
|
assert(this.outputs.length === 0);
|
||||||
data.outputs.forEach(function(output) {
|
data.outputs.forEach(function(output) {
|
||||||
this.outputs.push(bcoin.output(output));
|
this.output(output);
|
||||||
}, this);
|
}, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user