From 0516d3443127571915c1a4aeb35c644503a5d7f3 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Fri, 20 Oct 2023 15:56:59 -0400 Subject: [PATCH] set next id in bridge events script to event id + 1 (#667) (#681) (cherry picked from commit 26463ac0ef586f43ad7628c05e9bf24d37e76d0e) Co-authored-by: Tian --- protocol/scripts/bridge_events/bridge_events.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol/scripts/bridge_events/bridge_events.go b/protocol/scripts/bridge_events/bridge_events.go index 4a7cc73bdb..32b5992dc2 100644 --- a/protocol/scripts/bridge_events/bridge_events.go +++ b/protocol/scripts/bridge_events/bridge_events.go @@ -110,7 +110,7 @@ func main() { // Iterate over each event and populate the above fields for _, log := range logs { event := libeth.BridgeLogToEvent(log, denom) - aei.NextId = lib.Max(aei.NextId, event.Id) + aei.NextId = lib.Max(aei.NextId, event.Id+1) aei.EthBlockHeight = lib.Max(aei.EthBlockHeight, log.BlockNumber) // Add amount to total bridged amount.