Merge pull request #496 from digitaltangibletrust/master
Update Transaction.js
This commit is contained in:
commit
e449ea2b87
|
@ -543,7 +543,7 @@ Transaction.prototype.parse = function(parser) {
|
|||
var txinCount = parser.varInt();
|
||||
|
||||
this.ins = [];
|
||||
for (j = 0; j < txinCount; j++) {
|
||||
for (i = 0; i < txinCount; i++) {
|
||||
var txin = new TransactionIn();
|
||||
txin.o = parser.buffer(36); // outpoint
|
||||
sLen = parser.varInt(); // script_len
|
||||
|
@ -555,7 +555,7 @@ Transaction.prototype.parse = function(parser) {
|
|||
var txoutCount = parser.varInt();
|
||||
|
||||
this.outs = [];
|
||||
for (j = 0; j < txoutCount; j++) {
|
||||
for (i = 0; i < txoutCount; i++) {
|
||||
var txout = new TransactionOut();
|
||||
txout.v = parser.buffer(8); // value
|
||||
sLen = parser.varInt(); // script_len
|
||||
|
|
Loading…
Reference in New Issue