diff options
author | Fabio Berger <me@fabioberger.com> | 2017-06-08 22:45:50 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2017-06-08 22:45:50 +0800 |
commit | f25447aa3dbbad0986d6dbd414b51a4591ccbc7c (patch) | |
tree | 967b82bf9c04d72f206bcd7c62e3e47c96f02c5b /src/contract_wrappers | |
parent | 6e97489c1af02ad584b01f62a3eadf676cc82b2b (diff) | |
parent | 2195bc61347d6d132b6ce23ec05186c4afa4dd46 (diff) | |
download | dexon-sol-tools-f25447aa3dbbad0986d6dbd414b51a4591ccbc7c.tar dexon-sol-tools-f25447aa3dbbad0986d6dbd414b51a4591ccbc7c.tar.gz dexon-sol-tools-f25447aa3dbbad0986d6dbd414b51a4591ccbc7c.tar.bz2 dexon-sol-tools-f25447aa3dbbad0986d6dbd414b51a4591ccbc7c.tar.lz dexon-sol-tools-f25447aa3dbbad0986d6dbd414b51a4591ccbc7c.tar.xz dexon-sol-tools-f25447aa3dbbad0986d6dbd414b51a4591ccbc7c.tar.zst dexon-sol-tools-f25447aa3dbbad0986d6dbd414b51a4591ccbc7c.zip |
Merge branch 'master' into batchFillOrKill
Diffstat (limited to 'src/contract_wrappers')
-rw-r--r-- | src/contract_wrappers/exchange_wrapper.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/contract_wrappers/exchange_wrapper.ts b/src/contract_wrappers/exchange_wrapper.ts index 74928def0..96dbf403a 100644 --- a/src/contract_wrappers/exchange_wrapper.ts +++ b/src/contract_wrappers/exchange_wrapper.ts @@ -394,6 +394,12 @@ export class ExchangeWrapper extends ContractWrapper { const orderHashHex = utils.getOrderHashHex(order, exchangeInstance.address); return orderHashHex; } + private async getOrderHashHexUsingContractCallAsync(order: Order|SignedOrder): Promise<string> { + const exchangeInstance = await this.getExchangeContractAsync(); + const [orderAddresses, orderValues] = ExchangeWrapper.getOrderAddressesAndValues(order); + const orderHashHex = await exchangeInstance.getOrderHash.call(orderAddresses, orderValues); + return orderHashHex; + } private async stopWatchingExchangeLogEventsAsync() { const stopWatchingPromises = _.map(this.exchangeLogEventObjs, logEventObj => { return promisify(logEventObj.stopWatching, logEventObj)(); |