diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-07-08 06:57:45 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2017-07-11 15:30:14 +0800 |
commit | 79762a2e38145d92ca91673ebe51b7631f0caa86 (patch) | |
tree | 9edde4c1ad89ca595edf0a3093407e583b4619c3 /src/contract_wrappers | |
parent | 89167c8297c60d258705bb4428ad603ac2154fb7 (diff) | |
download | dexon-sol-tools-79762a2e38145d92ca91673ebe51b7631f0caa86.tar dexon-sol-tools-79762a2e38145d92ca91673ebe51b7631f0caa86.tar.gz dexon-sol-tools-79762a2e38145d92ca91673ebe51b7631f0caa86.tar.bz2 dexon-sol-tools-79762a2e38145d92ca91673ebe51b7631f0caa86.tar.lz dexon-sol-tools-79762a2e38145d92ca91673ebe51b7631f0caa86.tar.xz dexon-sol-tools-79762a2e38145d92ca91673ebe51b7631f0caa86.tar.zst dexon-sol-tools-79762a2e38145d92ca91673ebe51b7631f0caa86.zip |
Migrate getUnavailableTakerTokenAmount
Diffstat (limited to 'src/contract_wrappers')
-rw-r--r-- | src/contract_wrappers/exchange_wrapper.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/contract_wrappers/exchange_wrapper.ts b/src/contract_wrappers/exchange_wrapper.ts index e551cd9d8..7ec186bf4 100644 --- a/src/contract_wrappers/exchange_wrapper.ts +++ b/src/contract_wrappers/exchange_wrapper.ts @@ -105,10 +105,10 @@ export class ExchangeWrapper extends ContractWrapper { assert.doesConformToSchema('orderHash', orderHash, orderHashSchema); const exchangeContract = await this._getExchangeContractAsync(exchangeContractAddress); - let unavailableAmountInBaseUnits = await exchangeContract.getUnavailableValueT.call(orderHash); + let unavailableTakerTokenAmount = await exchangeContract.getUnavailableTakerTokenAmount.call(orderHash); // Wrap BigNumbers returned from web3 with our own (later) version of BigNumber - unavailableAmountInBaseUnits = new BigNumber(unavailableAmountInBaseUnits); - return unavailableAmountInBaseUnits; + unavailableTakerTokenAmount = new BigNumber(unavailableTakerTokenAmount); + return unavailableTakerTokenAmount; } /** * Retrieve the takerAmount of an order that has already been filled. |