Skip to content
This repository has been archived by the owner on Nov 21, 2019. It is now read-only.

Commit

Permalink
Merge pull request #1 from turbobit/fixed-support-ledger
Browse files Browse the repository at this point in the history
fixed support ledger
  • Loading branch information
Kim Myeonghun authored Jun 19, 2018
2 parents 4f573a7 + b5a3c21 commit 295d50b
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions app/scripts/uiFuncs.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,16 +177,20 @@ uiFuncs.generateTx = function(txData, callback) {
error: error
});
return;
}else if (rawTx.chainId === 31102) {
EIP155Supported = false;
}
var splitVersion = result['version'].split('.');
if (parseInt(splitVersion[0]) > 1) {
EIP155Supported = true;
} else
if (parseInt(splitVersion[1]) > 0) {
EIP155Supported = true;
} else
if (parseInt(splitVersion[2]) > 2) {
EIP155Supported = true;
else {
var splitVersion = result['version'].split('.');
if (parseInt(splitVersion[0]) > 1) {
EIP155Supported = true;
} else
if (parseInt(splitVersion[1]) > 0) {
EIP155Supported = true;
} else
if (parseInt(splitVersion[2]) > 2) {
EIP155Supported = true;
}
}
uiFuncs.signTxLedger(app, eTx, rawTx, txData, !EIP155Supported, callback);
}
Expand Down Expand Up @@ -343,4 +347,4 @@ uiFuncs.notifier = {
}
},
}
module.exports = uiFuncs;
module.exports = uiFuncs;

0 comments on commit 295d50b

Please sign in to comment.