From 49a50efa9ff5f12e194abba8d43a30b7776e3349 Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Thu, 5 Oct 2017 14:43:04 +0300 Subject: Add assertion for tokenAddress --- src/contract_wrappers/token_wrapper.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'src/contract_wrappers') diff --git a/src/contract_wrappers/token_wrapper.ts b/src/contract_wrappers/token_wrapper.ts index 161f6fca9..f988e6ece 100644 --- a/src/contract_wrappers/token_wrapper.ts +++ b/src/contract_wrappers/token_wrapper.ts @@ -291,6 +291,7 @@ export class TokenWrapper extends ContractWrapper { */ public async getLogsAsync(tokenAddress: string, eventName: TokenEvents, subscriptionOpts: SubscriptionOpts, indexFilterValues: IndexedFilterValues): Promise { + assert.isETHAddressHex('tokenAddress', tokenAddress); assert.doesBelongToStringEnum('eventName', eventName, TokenEvents); assert.doesConformToSchema('subscriptionOpts', subscriptionOpts, schemas.subscriptionOptsSchema); assert.doesConformToSchema('indexFilterValues', indexFilterValues, schemas.indexFilterValuesSchema); -- cgit