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

Commit

Permalink
나노렛저지원을 위해 패치
Browse files Browse the repository at this point in the history
  • Loading branch information
turbobit committed Jun 19, 2018
1 parent 4f573a7 commit b5a3c21
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 b5a3c21

Please sign in to comment.