aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-10-06 20:13:31 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-10-06 20:13:31 +0800
commit0c112a2a1c1811e1fc7c4b03881f960b952c788c (patch)
tree93ebd3a8e0d13cf2e8c67d7bc12a4a2f7d862cdd /src
parent81297b44c6392e1cb995848a5f81bdc3ce6108be (diff)
downloaddexon-sol-tools-0c112a2a1c1811e1fc7c4b03881f960b952c788c.tar
dexon-sol-tools-0c112a2a1c1811e1fc7c4b03881f960b952c788c.tar.gz
dexon-sol-tools-0c112a2a1c1811e1fc7c4b03881f960b952c788c.tar.bz2
dexon-sol-tools-0c112a2a1c1811e1fc7c4b03881f960b952c788c.tar.lz
dexon-sol-tools-0c112a2a1c1811e1fc7c4b03881f960b952c788c.tar.xz
dexon-sol-tools-0c112a2a1c1811e1fc7c4b03881f960b952c788c.tar.zst
dexon-sol-tools-0c112a2a1c1811e1fc7c4b03881f960b952c788c.zip
Add a hex prefix
Diffstat (limited to 'src')
-rw-r--r--src/utils/filter_utils.ts2
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 = {