aboutsummaryrefslogtreecommitdiffstats
path: root/packages/0x.js/test/utils
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-01-30 19:38:44 +0800
committerFabio Berger <me@fabioberger.com>2018-01-30 19:38:44 +0800
commit1cadbeed88d2e5f413c8f7e39aaee6efcff89831 (patch)
tree3cede90b64c1b9f85feda80b7564526615ca7b24 /packages/0x.js/test/utils
parentad52a82190259580f00b3a06b06ef1e950ccdc68 (diff)
downloaddexon-sol-tools-1cadbeed88d2e5f413c8f7e39aaee6efcff89831.tar
dexon-sol-tools-1cadbeed88d2e5f413c8f7e39aaee6efcff89831.tar.gz
dexon-sol-tools-1cadbeed88d2e5f413c8f7e39aaee6efcff89831.tar.bz2
dexon-sol-tools-1cadbeed88d2e5f413c8f7e39aaee6efcff89831.tar.lz
dexon-sol-tools-1cadbeed88d2e5f413c8f7e39aaee6efcff89831.tar.xz
dexon-sol-tools-1cadbeed88d2e5f413c8f7e39aaee6efcff89831.tar.zst
dexon-sol-tools-1cadbeed88d2e5f413c8f7e39aaee6efcff89831.zip
Add shouldAddPersonalMessagePrefix param to signOrderHashAsync instead of trying to infer whether to add it or not from the nodeVersion
Diffstat (limited to 'packages/0x.js/test/utils')
-rw-r--r--packages/0x.js/test/utils/order_factory.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/0x.js/test/utils/order_factory.ts b/packages/0x.js/test/utils/order_factory.ts
index 60a7c5fb2..08f2081a4 100644
--- a/packages/0x.js/test/utils/order_factory.ts
+++ b/packages/0x.js/test/utils/order_factory.ts
@@ -3,6 +3,8 @@ import * as _ from 'lodash';
import { SignedOrder, ZeroEx } from '../../src';
+const SHOULD_ADD_PERSONAL_MESSAGE_PREFIX = false;
+
export const orderFactory = {
async createSignedOrderAsync(
zeroEx: ZeroEx,
@@ -37,7 +39,7 @@ export const orderFactory = {
expirationUnixTimestampSec,
};
const orderHash = ZeroEx.getOrderHashHex(order);
- const ecSignature = await zeroEx.signOrderHashAsync(orderHash, maker);
+ const ecSignature = await zeroEx.signOrderHashAsync(orderHash, maker, SHOULD_ADD_PERSONAL_MESSAGE_PREFIX);
const signedOrder: SignedOrder = _.assign(order, { ecSignature });
return signedOrder;
},