aboutsummaryrefslogtreecommitdiffstats
path: root/src/0x.js.ts
diff options
context:
space:
mode:
authorLeonid <logvinov.leon@gmail.com>2017-06-08 01:01:17 +0800
committerGitHub <noreply@github.com>2017-06-08 01:01:17 +0800
commit834b28bfbe26e0331820d978b5be659b27423528 (patch)
treeaace4130451f80c01fdc5e7da16260e2d70c96e2 /src/0x.js.ts
parent28d3528e42563f95255cee3bd7f85cc03141522e (diff)
parentca308354880e81425043cd586da6c781013bea9d (diff)
downloaddexon-sol-tools-834b28bfbe26e0331820d978b5be659b27423528.tar
dexon-sol-tools-834b28bfbe26e0331820d978b5be659b27423528.tar.gz
dexon-sol-tools-834b28bfbe26e0331820d978b5be659b27423528.tar.bz2
dexon-sol-tools-834b28bfbe26e0331820d978b5be659b27423528.tar.lz
dexon-sol-tools-834b28bfbe26e0331820d978b5be659b27423528.tar.xz
dexon-sol-tools-834b28bfbe26e0331820d978b5be659b27423528.tar.zst
dexon-sol-tools-834b28bfbe26e0331820d978b5be659b27423528.zip
Merge pull request #42 from 0xProject/addExchangeMethods
Add FillOrKillAsync method & tests
Diffstat (limited to 'src/0x.js.ts')
-rw-r--r--src/0x.js.ts9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/0x.js.ts b/src/0x.js.ts
index 7b53b70ea..8f1178b2a 100644
--- a/src/0x.js.ts
+++ b/src/0x.js.ts
@@ -130,11 +130,12 @@ 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', SchemaValidator.convertToJSONSchemaCompatibleObject(order as object),
+ orderSchema);
+
const exchangeContractAddr = await this.getExchangeAddressAsync();
- const hashHex = utils.getOrderHashHex(order, exchangeContractAddr);
- return hashHex;
+ const orderHashHex = utils.getOrderHashHex(order, exchangeContractAddr);
+ return orderHashHex;
}
/**
* Signs an orderHash and returns it's elliptic curve signature