diff options
author | Fabio Berger <me@fabioberger.com> | 2018-01-30 21:19:58 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-01-30 21:19:58 +0800 |
commit | 8d30058a6dade197efbfa24380a479d7b72a882a (patch) | |
tree | f5041e33887a42035c934530b0394b8d9c80af42 /packages/website/ts/utils | |
parent | 69151c06e42fd588506db3aa62b95df5b4399607 (diff) | |
download | dexon-sol-tools-8d30058a6dade197efbfa24380a479d7b72a882a.tar dexon-sol-tools-8d30058a6dade197efbfa24380a479d7b72a882a.tar.gz dexon-sol-tools-8d30058a6dade197efbfa24380a479d7b72a882a.tar.bz2 dexon-sol-tools-8d30058a6dade197efbfa24380a479d7b72a882a.tar.lz dexon-sol-tools-8d30058a6dade197efbfa24380a479d7b72a882a.tar.xz dexon-sol-tools-8d30058a6dade197efbfa24380a479d7b72a882a.tar.zst dexon-sol-tools-8d30058a6dade197efbfa24380a479d7b72a882a.zip |
Pass in whether we want the personal message prefix appended and never append it for Ledger. This fixes signing when Ledger is used and the backing node is not Parity
Diffstat (limited to 'packages/website/ts/utils')
-rw-r--r-- | packages/website/ts/utils/utils.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/website/ts/utils/utils.ts b/packages/website/ts/utils/utils.ts index 23db8c0a7..003ecd30a 100644 --- a/packages/website/ts/utils/utils.ts +++ b/packages/website/ts/utils/utils.ts @@ -276,4 +276,10 @@ export const utils = { exchangeContractErrorToHumanReadableError[error] || ZeroExErrorToHumanReadableError[error]; return humanReadableErrorMsg; }, + isParityNode(nodeVersion: string): boolean { + return _.includes(nodeVersion, 'Parity'); + }, + isTestRpc(nodeVersion: string): boolean { + return _.includes(nodeVersion, 'TestRPC'); + }, }; |