diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-07 18:20:28 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-07 18:20:28 +0800 |
commit | 09f67322f1548b77ea3835b8a885e8c538835af8 (patch) | |
tree | 54db087854438cc7b55cbb9bd8f27bbf0c56a0df /src/contract_wrappers | |
parent | 9a2a79a947eeb9f839a381d1ee27cad872636438 (diff) | |
download | dexon-0x-contracts-09f67322f1548b77ea3835b8a885e8c538835af8.tar.gz dexon-0x-contracts-09f67322f1548b77ea3835b8a885e8c538835af8.tar.zst dexon-0x-contracts-09f67322f1548b77ea3835b8a885e8c538835af8.zip |
Remove assertions from utils methods
Diffstat (limited to 'src/contract_wrappers')
-rw-r--r-- | src/contract_wrappers/exchange_wrapper.ts | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/contract_wrappers/exchange_wrapper.ts b/src/contract_wrappers/exchange_wrapper.ts index fe03dbd16..6f62934dc 100644 --- a/src/contract_wrappers/exchange_wrapper.ts +++ b/src/contract_wrappers/exchange_wrapper.ts @@ -231,10 +231,7 @@ export class ExchangeWrapper extends ContractWrapper { logEventObj.watch(callback); this.exchangeLogEventObjs.push(logEventObj); } - /** - * Computes the orderHash for a given order and returns it as a hex encoded string. - */ - public async getOrderHashAsync(order: Order|SignedOrder): Promise<string> { + private async getOrderHashAsync(order: Order|SignedOrder): Promise<string> { const [orderAddresses, orderValues] = ExchangeWrapper.getOrderAddressesAndValues(order); const exchangeInstance = await this.getExchangeContractAsync(); const orderHash = utils.getOrderHashHex(order, exchangeInstance.address); |