diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-07-04 07:49:37 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-07-04 07:49:37 +0800 |
commit | 4fae4b449352ac73480a366dbae6d871f1c4fc61 (patch) | |
tree | f21ec689c50b3da5e50fe048a8441d628a39c943 /src/contract_wrappers/token_wrapper.ts | |
parent | 6d234c09afca0efd37a7e4f27d7881e09465b86d (diff) | |
download | dexon-sol-tools-4fae4b449352ac73480a366dbae6d871f1c4fc61.tar dexon-sol-tools-4fae4b449352ac73480a366dbae6d871f1c4fc61.tar.gz dexon-sol-tools-4fae4b449352ac73480a366dbae6d871f1c4fc61.tar.bz2 dexon-sol-tools-4fae4b449352ac73480a366dbae6d871f1c4fc61.tar.lz dexon-sol-tools-4fae4b449352ac73480a366dbae6d871f1c4fc61.tar.xz dexon-sol-tools-4fae4b449352ac73480a366dbae6d871f1c4fc61.tar.zst dexon-sol-tools-4fae4b449352ac73480a366dbae6d871f1c4fc61.zip |
Fix comments
Diffstat (limited to 'src/contract_wrappers/token_wrapper.ts')
-rw-r--r-- | src/contract_wrappers/token_wrapper.ts | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/contract_wrappers/token_wrapper.ts b/src/contract_wrappers/token_wrapper.ts index d60843cdb..85592a106 100644 --- a/src/contract_wrappers/token_wrapper.ts +++ b/src/contract_wrappers/token_wrapper.ts @@ -193,17 +193,16 @@ export class TokenWrapper extends ContractWrapper { }); } /** - * Subscribe to an event type emitted by the Token smart contract - * @param tokenAddress The hex encoded contract Ethereum address where the ERC20 token is deployed. + * Subscribe to an event type emitted by the Token contract. + * @param tokenAddress The hex encoded address where the ERC20 token is deployed. * @param eventName The token contract event you would like to subscribe to. * @param subscriptionOpts Subscriptions options that let you configure the subscription. * @param indexFilterValues An object where the keys are indexed args returned by the event and * the value is the value you are interested in. E.g `{maker: aUserAddressHex}` - * @return ContractEventEmitter object + * @return ContractEventEmitter object */ public async subscribeAsync(tokenAddress: string, eventName: TokenEvents, subscriptionOpts: SubscriptionOpts, - indexFilterValues: IndexedFilterValues): - Promise<ContractEventEmitter> { + indexFilterValues: IndexedFilterValues): Promise<ContractEventEmitter> { const tokenContract = await this._getTokenContractAsync(tokenAddress); let createLogEvent: CreateContractEvent; switch (eventName) { |