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 | |
parent | 78eb79396efcdf803d5be054b28816967fd340e0 (diff) | |
download | dexon-sol-tools-c07de97fd8a0fe3cf3ea15b2b6a02b326875e6de.tar dexon-sol-tools-c07de97fd8a0fe3cf3ea15b2b6a02b326875e6de.tar.gz dexon-sol-tools-c07de97fd8a0fe3cf3ea15b2b6a02b326875e6de.tar.bz2 dexon-sol-tools-c07de97fd8a0fe3cf3ea15b2b6a02b326875e6de.tar.lz dexon-sol-tools-c07de97fd8a0fe3cf3ea15b2b6a02b326875e6de.tar.xz dexon-sol-tools-c07de97fd8a0fe3cf3ea15b2b6a02b326875e6de.tar.zst dexon-sol-tools-c07de97fd8a0fe3cf3ea15b2b6a02b326875e6de.zip |
Fix WETH events watching
Diffstat (limited to 'packages')
-rw-r--r-- | packages/0x.js/src/artifacts/EtherToken.json | 4 | ||||
-rw-r--r-- | packages/0x.js/src/contract_wrappers/ether_token_wrapper.ts | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/packages/0x.js/src/artifacts/EtherToken.json b/packages/0x.js/src/artifacts/EtherToken.json index 0a6c5644c..b28a463c0 100644 --- a/packages/0x.js/src/artifacts/EtherToken.json +++ b/packages/0x.js/src/artifacts/EtherToken.json @@ -243,7 +243,7 @@ { "indexed": false, "name": "_value", - "type": "uint" + "type": "uint256" } ], "name": "Deposit", @@ -260,7 +260,7 @@ { "indexed": false, "name": "_value", - "type": "uint" + "type": "uint256" } ], "name": "Withdrawal", 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>( |