tx: fix global variable assignment.

Signed-off-by: Fedor Indutny <fedor@indutny.com>
This commit is contained in:
Christopher Jeffrey 2014-05-18 09:52:30 -05:00 committed by Fedor Indutny
parent 544de4a134
commit 296f95b27b

View File

@ -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;