mirror of
https://github.com/tornadocash/tornado-pool-subgraph.git
synced 2024-12-04 23:05:17 +01:00
Fix duplicate ID
This commit is contained in:
parent
81fb2a2e73
commit
45e72375b4
@ -6,7 +6,7 @@ import {
|
|||||||
|
|
||||||
export function handleCommitment(event: NewCommitment): void {
|
export function handleCommitment(event: NewCommitment): void {
|
||||||
let entity = new Commitment(
|
let entity = new Commitment(
|
||||||
event.transaction.from.toHex() + "-" + event.logIndex.toString()
|
event.transaction.hash.toHex() + "-" + event.logIndex.toString()
|
||||||
);
|
);
|
||||||
|
|
||||||
entity.index = event.params.index;
|
entity.index = event.params.index;
|
||||||
@ -21,7 +21,7 @@ export function handleCommitment(event: NewCommitment): void {
|
|||||||
|
|
||||||
export function handleNullifier(event: NewNullifier): void {
|
export function handleNullifier(event: NewNullifier): void {
|
||||||
let entity = new Nullifier(
|
let entity = new Nullifier(
|
||||||
event.transaction.from.toHex() + "-" + event.logIndex.toString()
|
event.transaction.hash.toHex() + "-" + event.logIndex.toString()
|
||||||
);
|
);
|
||||||
|
|
||||||
entity.nullifier = event.params.nullifier;
|
entity.nullifier = event.params.nullifier;
|
||||||
|
Loading…
Reference in New Issue
Block a user