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 19:26:13 +0800 |
commit | 8c44b102fc48a4ba8a662be3b603ce2af0e8acf6 (patch) | |
tree | c6aa3b3a811ea3d07491c79c6540c90d1475e91c /src/contract_wrappers/exchange_wrapper.ts | |
parent | 65beef5b9cf3a859ec2d24a7b68d02e6d8425fba (diff) | |
download | dexon-0x-contracts-8c44b102fc48a4ba8a662be3b603ce2af0e8acf6.tar.gz dexon-0x-contracts-8c44b102fc48a4ba8a662be3b603ce2af0e8acf6.tar.zst dexon-0x-contracts-8c44b102fc48a4ba8a662be3b603ce2af0e8acf6.zip |
Remove assertions from utils methods
Diffstat (limited to 'src/contract_wrappers/exchange_wrapper.ts')
-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 bd057eacd..408d3deed 100644 --- a/src/contract_wrappers/exchange_wrapper.ts +++ b/src/contract_wrappers/exchange_wrapper.ts @@ -253,10 +253,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); |