Skip to content

Commit

Permalink
fix: relation between ticket and integration (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
gauthiermyr authored Mar 12, 2024
1 parent f20379d commit 1db1a74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ERC20.mapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ export function handleExit(event: Exit): void {
totalETH = totalETH.plus(ethValue);
depositDataEntry.exitedEth = depositDataEntry.exitedEth.plus(ethValue);
const exitQueue = vExitQueue.load(pool!.exitQueue);
const nextTicketIdx = exitQueue!.ticketCount;
const nextTicketIdx = exitQueue!.ticketCount.minus(BigInt.fromI32(1));
const linkedTicketId = externalEntityUUID(Address.fromBytes(exitQueue!.address), [nextTicketIdx.toString()]);
tickets.push(linkedTicketId);
}
Expand Down

0 comments on commit 1db1a74

Please sign in to comment.