aboutsummaryrefslogtreecommitdiffstats
path: root/src/0x.js.ts
diff options
context:
space:
mode:
authorLeonid <logvinov.leon@gmail.com>2017-06-10 18:23:41 +0800
committerGitHub <noreply@github.com>2017-06-10 18:23:41 +0800
commit1cff9fdf77e39aa707f2a13a00d07d73543f0f00 (patch)
treee69bcf1bdb24de596023dbf55f2a464600c36a38 /src/0x.js.ts
parent81e3b180a9f764989bc76e68a1d55006e2eff80e (diff)
parentb739ae24944876c28a2ff474993e72a7178b3d1b (diff)
downloaddexon-sol-tools-1cff9fdf77e39aa707f2a13a00d07d73543f0f00.tar
dexon-sol-tools-1cff9fdf77e39aa707f2a13a00d07d73543f0f00.tar.gz
dexon-sol-tools-1cff9fdf77e39aa707f2a13a00d07d73543f0f00.tar.bz2
dexon-sol-tools-1cff9fdf77e39aa707f2a13a00d07d73543f0f00.tar.lz
dexon-sol-tools-1cff9fdf77e39aa707f2a13a00d07d73543f0f00.tar.xz
dexon-sol-tools-1cff9fdf77e39aa707f2a13a00d07d73543f0f00.tar.zst
dexon-sol-tools-1cff9fdf77e39aa707f2a13a00d07d73543f0f00.zip
Merge branch 'master' into subscribe-async-tests
Diffstat (limited to 'src/0x.js.ts')
-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 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);