diff options
author | Leonid <logvinov.leon@gmail.com> | 2017-06-10 18:23:34 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-10 18:23:34 +0800 |
commit | b739ae24944876c28a2ff474993e72a7178b3d1b (patch) | |
tree | 5e176f2208a97471d83ad0e1ffbc9980e25cdd24 /src/0x.js.ts | |
parent | 1460966d8f03e5ec0012b21d4c4614c4c3ec44bc (diff) | |
parent | 823134b3bf24c93bd470a1de65bd39adaf554f73 (diff) | |
download | dexon-sol-tools-b739ae24944876c28a2ff474993e72a7178b3d1b.tar dexon-sol-tools-b739ae24944876c28a2ff474993e72a7178b3d1b.tar.gz dexon-sol-tools-b739ae24944876c28a2ff474993e72a7178b3d1b.tar.bz2 dexon-sol-tools-b739ae24944876c28a2ff474993e72a7178b3d1b.tar.lz dexon-sol-tools-b739ae24944876c28a2ff474993e72a7178b3d1b.tar.xz dexon-sol-tools-b739ae24944876c28a2ff474993e72a7178b3d1b.tar.zst dexon-sol-tools-b739ae24944876c28a2ff474993e72a7178b3d1b.zip |
Merge pull request #52 from 0xProject/json-schema
Convert to JSON schema compatible object by default
Diffstat (limited to 'src/0x.js.ts')
-rw-r--r-- | src/0x.js.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/0x.js.ts b/src/0x.js.ts index 01820d075..143ad8e1f 100644 --- a/src/0x.js.ts +++ b/src/0x.js.ts @@ -128,8 +128,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); |