diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-10-06 20:13:31 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-10-06 20:13:31 +0800 |
commit | 0c112a2a1c1811e1fc7c4b03881f960b952c788c (patch) | |
tree | 93ebd3a8e0d13cf2e8c67d7bc12a4a2f7d862cdd /src/utils | |
parent | 81297b44c6392e1cb995848a5f81bdc3ce6108be (diff) | |
download | dexon-0x-contracts-0c112a2a1c1811e1fc7c4b03881f960b952c788c.tar.gz dexon-0x-contracts-0c112a2a1c1811e1fc7c4b03881f960b952c788c.tar.zst dexon-0x-contracts-0c112a2a1c1811e1fc7c4b03881f960b952c788c.zip |
Add a hex prefix
Diffstat (limited to 'src/utils')
-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 = { |