diff options
-rw-r--r-- | src/utils/filter_utils.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/filter_utils.ts b/src/utils/filter_utils.ts index c056467c7..e09a95a6e 100644 --- a/src/utils/filter_utils.ts +++ b/src/utils/filter_utils.ts @@ -16,7 +16,7 @@ export const filterUtils = { subscriptionOpts?: SubscriptionOpts): Web3.FilterObject { const eventAbi = _.find(abi, {name: eventName}) as Web3.EventAbi; const eventSignature = filterUtils.getEventSignatureFromAbiByName(eventAbi, eventName); - const topicForEventSignature = jsSHA3.keccak256(eventSignature); + const topicForEventSignature = ethUtil.addHexPrefix(jsSHA3.keccak256(eventSignature)); const topicsForIndexedArgs = filterUtils.getTopicsForIndexedArgs(eventAbi, indexFilterValues); const topics = [topicForEventSignature, ...topicsForIndexedArgs]; let filter: Web3.FilterObject = { |