diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-07-01 10:08:07 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-07-01 10:08:07 +0800 |
commit | 74ef0458f563ab9b82427ce736e90d1e0a922fb3 (patch) | |
tree | 3cc01c9984d1e2be68e2987d05b9be7e1338b22d /src/utils | |
parent | 6a8c54e8decd158c74c588835d7fefaebcfc1df2 (diff) | |
download | dexon-sol-tools-74ef0458f563ab9b82427ce736e90d1e0a922fb3.tar dexon-sol-tools-74ef0458f563ab9b82427ce736e90d1e0a922fb3.tar.gz dexon-sol-tools-74ef0458f563ab9b82427ce736e90d1e0a922fb3.tar.bz2 dexon-sol-tools-74ef0458f563ab9b82427ce736e90d1e0a922fb3.tar.lz dexon-sol-tools-74ef0458f563ab9b82427ce736e90d1e0a922fb3.tar.xz dexon-sol-tools-74ef0458f563ab9b82427ce736e90d1e0a922fb3.tar.zst dexon-sol-tools-74ef0458f563ab9b82427ce736e90d1e0a922fb3.zip |
Fix test failures caused by testrpc new eth_sign behaviour
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/utils.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/utils/utils.ts b/src/utils/utils.ts index bad5b6498..6f2d02a70 100644 --- a/src/utils/utils.ts +++ b/src/utils/utils.ts @@ -22,6 +22,9 @@ export const utils = { isParityNode(nodeVersion: string): boolean { return _.includes(nodeVersion, 'Parity'); }, + isTestRpc(nodeVersion: string): boolean { + return _.includes(nodeVersion, 'TestRPC'); + }, isValidOrderHash(orderHashHex: string): boolean { const isValid = /^0x[0-9A-F]{64}$/i.test(orderHashHex); return isValid; |