tx: fix global variable assignment.
Signed-off-by: Fedor Indutny <fedor@indutny.com>
This commit is contained in:
parent
544de4a134
commit
296f95b27b
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user