From 4fae4b449352ac73480a366dbae6d871f1c4fc61 Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Mon, 3 Jul 2017 16:49:37 -0700 Subject: Fix comments --- src/contract_wrappers/token_wrapper.ts | 9 ++++----- src/utils/event_utils.ts | 4 ++-- 2 files changed, 6 insertions(+), 7 deletions(-) (limited to 'src') 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 { + indexFilterValues: IndexedFilterValues): Promise { const tokenContract = await this._getTokenContractAsync(tokenAddress); let createLogEvent: CreateContractEvent; switch (eventName) { diff --git a/src/utils/event_utils.ts b/src/utils/event_utils.ts index c9d725a42..d3eeaecac 100644 --- a/src/utils/event_utils.ts +++ b/src/utils/event_utils.ts @@ -6,8 +6,8 @@ import promisify = require('es6-promisify'); export const eventUtils = { /** - * Wrappes eventCallback function so that all the BigNumber arguments are wrapped in nwwer version of BigNumber - * @param eventCallback event callback function to be wrapped + * Wraps eventCallback function so that all the BigNumber arguments are wrapped in a newer version of BigNumber. + * @param eventCallback Event callback function to be wrapped * @return Wrapped event callback function */ getBigNumberWrappingEventCallback(eventCallback: EventCallback): EventCallback { -- cgit