diff options
author | Leonid <logvinov.leon@gmail.com> | 2017-06-08 23:02:30 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-08 23:02:30 +0800 |
commit | 5513d011757c21c22164c0296f3d18fc5dbae204 (patch) | |
tree | 8c40903620083eb48c5758e0df81e3a3a783e97b /src | |
parent | ea4cf16eae4bab31c5da522bb582a5c83af53705 (diff) | |
parent | 2195bc61347d6d132b6ce23ec05186c4afa4dd46 (diff) | |
download | dexon-0x-contracts-5513d011757c21c22164c0296f3d18fc5dbae204.tar dexon-0x-contracts-5513d011757c21c22164c0296f3d18fc5dbae204.tar.gz dexon-0x-contracts-5513d011757c21c22164c0296f3d18fc5dbae204.tar.bz2 dexon-0x-contracts-5513d011757c21c22164c0296f3d18fc5dbae204.tar.lz dexon-0x-contracts-5513d011757c21c22164c0296f3d18fc5dbae204.tar.xz dexon-0x-contracts-5513d011757c21c22164c0296f3d18fc5dbae204.tar.zst dexon-0x-contracts-5513d011757c21c22164c0296f3d18fc5dbae204.zip |
Merge branch 'master' into is-valid-signature-contract
Diffstat (limited to 'src')
-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 5b5d1e914..c53e092fb 100644 --- a/src/contract_wrappers/exchange_wrapper.ts +++ b/src/contract_wrappers/exchange_wrapper.ts @@ -342,6 +342,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)(); |