|
|
@ -144,11 +144,11 @@ Transaction.prototype.fromJSON = function(json) { |
|
|
|
Transaction.prototype.toObject = function toObject() { |
|
|
|
var inputs = []; |
|
|
|
this.inputs.forEach(function(input) { |
|
|
|
inputs.push(input.toJSON()); |
|
|
|
inputs.push(input.toObject()); |
|
|
|
}); |
|
|
|
var outputs = []; |
|
|
|
this.outputs.forEach(function(output) { |
|
|
|
outputs.push(output.toJSON()); |
|
|
|
outputs.push(output.toObject()); |
|
|
|
}); |
|
|
|
return { |
|
|
|
version: this.version, |
|
|
|