From c07de97fd8a0fe3cf3ea15b2b6a02b326875e6de Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Wed, 20 Dec 2017 13:20:24 +0100 Subject: Fix WETH events watching --- packages/0x.js/src/artifacts/EtherToken.json | 4 ++-- packages/0x.js/src/contract_wrappers/ether_token_wrapper.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'packages/0x.js/src') 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>> { 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( -- cgit v1.2.3