aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-06-10 01:38:34 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-06-10 01:38:34 +0800
commit1b828b37aa8e3cc762926c19d9d4e3940c4e6618 (patch)
tree56e412a784f4b6f56da3f04ff268ac1bfdd4afe6 /src
parent4e9a83132cdec4a6278052919310118c2abbc0ca (diff)
downloaddexon-sol-tools-1b828b37aa8e3cc762926c19d9d4e3940c4e6618.tar
dexon-sol-tools-1b828b37aa8e3cc762926c19d9d4e3940c4e6618.tar.gz
dexon-sol-tools-1b828b37aa8e3cc762926c19d9d4e3940c4e6618.tar.bz2
dexon-sol-tools-1b828b37aa8e3cc762926c19d9d4e3940c4e6618.tar.lz
dexon-sol-tools-1b828b37aa8e3cc762926c19d9d4e3940c4e6618.tar.xz
dexon-sol-tools-1b828b37aa8e3cc762926c19d9d4e3940c4e6618.tar.zst
dexon-sol-tools-1b828b37aa8e3cc762926c19d9d4e3940c4e6618.zip
Fix tests
Diffstat (limited to 'src')
-rw-r--r--src/0x.js.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/0x.js.ts b/src/0x.js.ts
index 2bf8cad5e..7a5d14aa8 100644
--- a/src/0x.js.ts
+++ b/src/0x.js.ts
@@ -130,8 +130,7 @@ export class ZeroEx {
* Computes the orderHash for a given order and returns it as a hex encoded string.
*/
public async getOrderHashHexAsync(order: Order|SignedOrder): Promise<string> {
- assert.doesConformToSchema('order', SchemaValidator.convertToJSONSchemaCompatibleObject(order as object),
- orderSchema);
+ assert.doesConformToSchema('order', order, orderSchema);
const exchangeContractAddr = await this.getExchangeAddressAsync();
const orderHashHex = utils.getOrderHashHex(order, exchangeContractAddr);