aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-10-05 19:43:04 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-10-05 19:43:04 +0800
commit49a50efa9ff5f12e194abba8d43a30b7776e3349 (patch)
treee2d2063bf0717368be4c8074e3887af606c978f6 /src
parent80cbdf469e9b2611b5abe09fb61142b4640f23a1 (diff)
downloaddexon-sol-tools-49a50efa9ff5f12e194abba8d43a30b7776e3349.tar
dexon-sol-tools-49a50efa9ff5f12e194abba8d43a30b7776e3349.tar.gz
dexon-sol-tools-49a50efa9ff5f12e194abba8d43a30b7776e3349.tar.bz2
dexon-sol-tools-49a50efa9ff5f12e194abba8d43a30b7776e3349.tar.lz
dexon-sol-tools-49a50efa9ff5f12e194abba8d43a30b7776e3349.tar.xz
dexon-sol-tools-49a50efa9ff5f12e194abba8d43a30b7776e3349.tar.zst
dexon-sol-tools-49a50efa9ff5f12e194abba8d43a30b7776e3349.zip
Add assertion for tokenAddress
Diffstat (limited to 'src')
-rw-r--r--src/contract_wrappers/token_wrapper.ts1
1 files changed, 1 insertions, 0 deletions
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<LogWithDecodedArgs[]> {
+ assert.isETHAddressHex('tokenAddress', tokenAddress);
assert.doesBelongToStringEnum('eventName', eventName, TokenEvents);
assert.doesConformToSchema('subscriptionOpts', subscriptionOpts, schemas.subscriptionOptsSchema);
assert.doesConformToSchema('indexFilterValues', indexFilterValues, schemas.indexFilterValuesSchema);