Added long chain ID support to parsing.

This commit is contained in:
Richard Moore 2018-04-12 18:29:22 -04:00
parent efb7dce524
commit 3936b15afc
No known key found for this signature in database
GPG Key ID: 525F70A6FCABC295

@ -180,8 +180,8 @@ utils.defineProperty(Wallet, 'parseTransaction', function(rawTransaction) {
var r = utils.arrayify(signedTransaction[7]);
var s = utils.arrayify(signedTransaction[8]);
if (v.length === 1 && r.length >= 1 && r.length <= 32 && s.length >= 1 && s.length <= 32) {
transaction.v = v[0];
if (v.length >= 1 && r.length >= 1 && r.length <= 32 && s.length >= 1 && s.length <= 32) {
transaction.v = utils.bigNumberify(v).toNumber();
transaction.r = signedTransaction[7];
transaction.s = signedTransaction[8];