diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-06-27 16:23:17 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-06-29 22:52:52 +0800 |
commit | ceba82260fbe154a01e86c4d025e0a9f491a1bf7 (patch) | |
tree | 692f2309f4c0eb9f4058e4ed44b8ff8c83734354 | |
parent | a5a61c87fccd11d7b2c5d0f722955e7438f3a144 (diff) | |
download | dexon-sol-tools-ceba82260fbe154a01e86c4d025e0a9f491a1bf7.tar dexon-sol-tools-ceba82260fbe154a01e86c4d025e0a9f491a1bf7.tar.gz dexon-sol-tools-ceba82260fbe154a01e86c4d025e0a9f491a1bf7.tar.bz2 dexon-sol-tools-ceba82260fbe154a01e86c4d025e0a9f491a1bf7.tar.lz dexon-sol-tools-ceba82260fbe154a01e86c4d025e0a9f491a1bf7.tar.xz dexon-sol-tools-ceba82260fbe154a01e86c4d025e0a9f491a1bf7.tar.zst dexon-sol-tools-ceba82260fbe154a01e86c4d025e0a9f491a1bf7.zip |
Remove unused params in filter_utils
-rw-r--r-- | packages/contract-wrappers/src/utils/filter_utils.ts | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/packages/contract-wrappers/src/utils/filter_utils.ts b/packages/contract-wrappers/src/utils/filter_utils.ts index 5256d010f..0e73987f7 100644 --- a/packages/contract-wrappers/src/utils/filter_utils.ts +++ b/packages/contract-wrappers/src/utils/filter_utils.ts @@ -1,14 +1,4 @@ -// tslint:disable:no-unused-variable -import { - ConstructorAbi, - ContractAbi, - EventAbi, - FallbackAbi, - FilterObject, - LogEntry, - MethodAbi, -} from '@0xproject/types'; -// tslint:enable:no-unused-variable +import { ConstructorAbi, ContractAbi, EventAbi, FallbackAbi, FilterObject, LogEntry, MethodAbi } from 'ethereum-types'; import * as ethUtil from 'ethereumjs-util'; import * as jsSHA3 from 'js-sha3'; import * as _ from 'lodash'; @@ -30,7 +20,7 @@ export const filterUtils = { blockRange?: BlockRange, ): FilterObject { const eventAbi = _.find(abi, { name: eventName }) as EventAbi; - const eventSignature = filterUtils.getEventSignatureFromAbiByName(eventAbi, eventName); + const eventSignature = filterUtils.getEventSignatureFromAbiByName(eventAbi); const topicForEventSignature = ethUtil.addHexPrefix(jsSHA3.keccak256(eventSignature)); const topicsForIndexedArgs = filterUtils.getTopicsForIndexedArgs(eventAbi, indexFilterValues); const topics = [topicForEventSignature, ...topicsForIndexedArgs]; @@ -46,7 +36,7 @@ export const filterUtils = { } return filter; }, - getEventSignatureFromAbiByName(eventAbi: EventAbi, eventName: ContractEvents): string { + getEventSignatureFromAbiByName(eventAbi: EventAbi): string { const types = _.map(eventAbi.inputs, 'type'); const signature = `${eventAbi.name}(${types.join(',')})`; return signature; |