diff options
author | Fabio Berger <me@fabioberger.com> | 2018-05-31 05:08:43 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-05-31 05:08:43 +0800 |
commit | 32833b7301ede19b3b80d95df32c0565efdd583a (patch) | |
tree | 4e8d954d281f39462cb800a77c17088720211fe3 /packages/order-utils/src/order_hash.ts | |
parent | 3302c892844e85d3a36460cb381abbb62d5730d4 (diff) | |
download | dexon-0x-contracts-32833b7301ede19b3b80d95df32c0565efdd583a.tar dexon-0x-contracts-32833b7301ede19b3b80d95df32c0565efdd583a.tar.gz dexon-0x-contracts-32833b7301ede19b3b80d95df32c0565efdd583a.tar.bz2 dexon-0x-contracts-32833b7301ede19b3b80d95df32c0565efdd583a.tar.lz dexon-0x-contracts-32833b7301ede19b3b80d95df32c0565efdd583a.tar.xz dexon-0x-contracts-32833b7301ede19b3b80d95df32c0565efdd583a.tar.zst dexon-0x-contracts-32833b7301ede19b3b80d95df32c0565efdd583a.zip |
Fix order-utils tests
Diffstat (limited to 'packages/order-utils/src/order_hash.ts')
-rw-r--r-- | packages/order-utils/src/order_hash.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/order-utils/src/order_hash.ts b/packages/order-utils/src/order_hash.ts index 3d0db5b0c..a4e36ab89 100644 --- a/packages/order-utils/src/order_hash.ts +++ b/packages/order-utils/src/order_hash.ts @@ -9,7 +9,7 @@ import * as _ from 'lodash'; import { assert } from './assert'; import { crypto } from './crypto'; -const INVALID_TAKER_FORMAT = 'instance.taker is not of a type(s) string'; +const INVALID_TAKER_FORMAT = 'instance.takerAddress is not of a type(s) string'; export const orderHashUtils = { /** @@ -34,7 +34,7 @@ export const orderHashUtils = { */ getOrderHashHex(order: SignedOrder | Order): string { try { - assert.doesConformToSchema('order', order, schemas.orderSchema); + assert.doesConformToSchema('order', order, schemas.orderSchema, [schemas.hexSchema]); } catch (error) { if (_.includes(error.message, INVALID_TAKER_FORMAT)) { const errMsg = |