From 296f95b27bbeb1b9d6d39ce8372524f44474be69 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Sun, 18 May 2014 09:52:30 -0500 Subject: [PATCH] tx: fix global variable assignment. Signed-off-by: Fedor Indutny --- lib/bcoin/tx.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;