diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-07-05 18:12:27 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-07-05 21:58:42 +0800 |
commit | 91e8c00076fda1713b7ca10d8cae64250cda6093 (patch) | |
tree | d56a61b0f4734960ffe44039fb820b14c3ce4316 | |
parent | 20bf4d8ef98fe129337bc39d73200bde9868b114 (diff) | |
download | dexon-sol-tools-91e8c00076fda1713b7ca10d8cae64250cda6093.tar dexon-sol-tools-91e8c00076fda1713b7ca10d8cae64250cda6093.tar.gz dexon-sol-tools-91e8c00076fda1713b7ca10d8cae64250cda6093.tar.bz2 dexon-sol-tools-91e8c00076fda1713b7ca10d8cae64250cda6093.tar.lz dexon-sol-tools-91e8c00076fda1713b7ca10d8cae64250cda6093.tar.xz dexon-sol-tools-91e8c00076fda1713b7ca10d8cae64250cda6093.tar.zst dexon-sol-tools-91e8c00076fda1713b7ca10d8cae64250cda6093.zip |
Fix comments
-rw-r--r-- | packages/contract-wrappers/src/contract_wrappers/exchange_wrapper.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/contract-wrappers/src/contract_wrappers/exchange_wrapper.ts b/packages/contract-wrappers/src/contract_wrappers/exchange_wrapper.ts index 439e2862b..754369037 100644 --- a/packages/contract-wrappers/src/contract_wrappers/exchange_wrapper.ts +++ b/packages/contract-wrappers/src/contract_wrappers/exchange_wrapper.ts @@ -56,23 +56,23 @@ export class ExchangeWrapper extends ContractWrapper { return assetProxy; } /** - * Retrieve the takerAmount of an order that has already been filled. + * Retrieve the takerAssetAmount of an order that has already been filled. * @param orderHash The hex encoded orderHash for which you would like to retrieve the filled takerAmount. * @param methodOpts Optional arguments this method accepts. - * @return The amount of the order (in taker tokens) that has already been filled. + * @return The amount of the order (in taker asset base units) that has already been filled. */ - public async getFilledTakerAmountAsync(orderHash: string, methodOpts: MethodOpts = {}): Promise<BigNumber> { + public async getFilledTakerAssetAmountAsync(orderHash: string, methodOpts: MethodOpts = {}): Promise<BigNumber> { assert.doesConformToSchema('orderHash', orderHash, schemas.orderHashSchema); assert.doesConformToSchema('methodOpts', methodOpts, methodOptsSchema); const exchangeContract = await this._getExchangeContractAsync(); const txData = {}; - const fillAmountInBaseUnits = await exchangeContract.filled.callAsync( + const filledTakerAssetAmountInBaseUnits = await exchangeContract.filled.callAsync( orderHash, txData, methodOpts.defaultBlock, ); - return fillAmountInBaseUnits; + return filledTakerAssetAmountInBaseUnits; } /** * Retrieve the current context address |