diff --git a/lib/bcoin/tx.js b/lib/bcoin/tx.js index 95ea25bc..7b15e799 100644 --- a/lib/bcoin/tx.js +++ b/lib/bcoin/tx.js @@ -293,7 +293,7 @@ TX.fromJSON = function fromJSON(json) { assert.equal(json.type, 'tx'); var raw = utils.toArray(json.tx, 'hex'); - tx = new TX(new bcoin.protocol.parser().parseTX(raw)); + var tx = new TX(new bcoin.protocol.parser().parseTX(raw)); tx.ts = json.ts; tx.block = json.block || null; tx.ps = json.ps;