diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-12-20 20:20:24 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-12-20 21:02:24 +0800 |
commit | c07de97fd8a0fe3cf3ea15b2b6a02b326875e6de (patch) | |
tree | 6c927762fb996cec282023ed0bf613764de72aef /packages/0x.js/src/contract_wrappers/ether_token_wrapper.ts | |
parent | 78eb79396efcdf803d5be054b28816967fd340e0 (diff) | |
download | dexon-0x-contracts-c07de97fd8a0fe3cf3ea15b2b6a02b326875e6de.tar dexon-0x-contracts-c07de97fd8a0fe3cf3ea15b2b6a02b326875e6de.tar.gz dexon-0x-contracts-c07de97fd8a0fe3cf3ea15b2b6a02b326875e6de.tar.bz2 dexon-0x-contracts-c07de97fd8a0fe3cf3ea15b2b6a02b326875e6de.tar.lz dexon-0x-contracts-c07de97fd8a0fe3cf3ea15b2b6a02b326875e6de.tar.xz dexon-0x-contracts-c07de97fd8a0fe3cf3ea15b2b6a02b326875e6de.tar.zst dexon-0x-contracts-c07de97fd8a0fe3cf3ea15b2b6a02b326875e6de.zip |
Fix WETH events watching
Diffstat (limited to 'packages/0x.js/src/contract_wrappers/ether_token_wrapper.ts')
-rw-r--r-- | packages/0x.js/src/contract_wrappers/ether_token_wrapper.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/0x.js/src/contract_wrappers/ether_token_wrapper.ts b/packages/0x.js/src/contract_wrappers/ether_token_wrapper.ts index 238009759..7b2743811 100644 --- a/packages/0x.js/src/contract_wrappers/ether_token_wrapper.ts +++ b/packages/0x.js/src/contract_wrappers/ether_token_wrapper.ts @@ -100,7 +100,7 @@ export class EtherTokenWrapper extends ContractWrapper { etherTokenAddress: string, eventName: EtherTokenEvents, blockRange: BlockRange, indexFilterValues: IndexedFilterValues): Promise<Array<LogWithDecodedArgs<ArgsType>>> { assert.isETHAddressHex('etherTokenAddress', etherTokenAddress); - assert.doesBelongToStringEnum('eventName', eventName, TokenEvents); + assert.doesBelongToStringEnum('eventName', eventName, EtherTokenEvents); assert.doesConformToSchema('blockRange', blockRange, schemas.blockRangeSchema); assert.doesConformToSchema('indexFilterValues', indexFilterValues, schemas.indexFilterValuesSchema); const logs = await this._getLogsAsync<ArgsType>( |