From 45e72375b4ebfb4b323e92ee3e8a68b496fea8ef Mon Sep 17 00:00:00 2001 From: incrypto32 Date: Thu, 5 May 2022 23:10:59 +0530 Subject: [PATCH] Fix duplicate ID --- src/mapping/l2.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mapping/l2.ts b/src/mapping/l2.ts index 72cf98d..95acd55 100644 --- a/src/mapping/l2.ts +++ b/src/mapping/l2.ts @@ -6,7 +6,7 @@ import { export function handleCommitment(event: NewCommitment): void { let entity = new Commitment( - event.transaction.from.toHex() + "-" + event.logIndex.toString() + event.transaction.hash.toHex() + "-" + event.logIndex.toString() ); entity.index = event.params.index; @@ -21,7 +21,7 @@ export function handleCommitment(event: NewCommitment): void { export function handleNullifier(event: NewNullifier): void { let entity = new Nullifier( - event.transaction.from.toHex() + "-" + event.logIndex.toString() + event.transaction.hash.toHex() + "-" + event.logIndex.toString() ); entity.nullifier = event.params.nullifier;