Fix WETH events watching

This commit is contained in:
Leonid Logvinov
2017-12-20 13:20:24 +01:00
parent 78eb79396e
commit c07de97fd8
2 changed files with 3 additions and 3 deletions

View File

@@ -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",

View File

@@ -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>(