aboutsummaryrefslogtreecommitdiffstats
path: root/src/0x.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-07-01 10:08:07 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-07-01 10:08:07 +0800
commit74ef0458f563ab9b82427ce736e90d1e0a922fb3 (patch)
tree3cc01c9984d1e2be68e2987d05b9be7e1338b22d /src/0x.ts
parent6a8c54e8decd158c74c588835d7fefaebcfc1df2 (diff)
downloaddexon-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/0x.ts')
-rw-r--r--src/0x.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/0x.ts b/src/0x.ts
index d7a01ba70..6dfd1a8f5 100644
--- a/src/0x.ts
+++ b/src/0x.ts
@@ -199,8 +199,9 @@ export class ZeroEx {
let msgHashHex;
const nodeVersion = await this._web3Wrapper.getNodeVersionAsync();
const isParityNode = utils.isParityNode(nodeVersion);
- if (isParityNode) {
- // Parity node adds the personalMessage prefix itself
+ const isTestRpc = utils.isTestRpc(nodeVersion);
+ if (isParityNode || isTestRpc) {
+ // Parity and TestRpc nodes add the personalMessage prefix itself
msgHashHex = orderHash;
} else {
const orderHashBuff = ethUtil.toBuffer(orderHash);