aboutsummaryrefslogtreecommitdiffstats
path: root/src/0x.ts
diff options
context:
space:
mode:
authorLeonid <logvinov.leon@gmail.com>2017-07-04 03:05:46 +0800
committerGitHub <noreply@github.com>2017-07-04 03:05:46 +0800
commit8204409c6d6bf773aa8ebb38006a3975ed43a684 (patch)
tree93dcf602b5a738bad03c121384707fcf19518310 /src/0x.ts
parent4bcad260244f5399c07530db7ac18a8335246e34 (diff)
parentd506a1f98562dd11ecff5e936a93fce6d14e48a9 (diff)
downloaddexon-sol-tools-8204409c6d6bf773aa8ebb38006a3975ed43a684.tar
dexon-sol-tools-8204409c6d6bf773aa8ebb38006a3975ed43a684.tar.gz
dexon-sol-tools-8204409c6d6bf773aa8ebb38006a3975ed43a684.tar.bz2
dexon-sol-tools-8204409c6d6bf773aa8ebb38006a3975ed43a684.tar.lz
dexon-sol-tools-8204409c6d6bf773aa8ebb38006a3975ed43a684.tar.xz
dexon-sol-tools-8204409c6d6bf773aa8ebb38006a3975ed43a684.tar.zst
dexon-sol-tools-8204409c6d6bf773aa8ebb38006a3975ed43a684.zip
Merge branch 'master' into add-exchange-address-to-order-struct
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 a95257db6..b56a2f949 100644
--- a/src/0x.ts
+++ b/src/0x.ts
@@ -200,8 +200,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);