Skip to content

Commit

Permalink
set next id in bridge events script to event id + 1 (#667) (#681)
Browse files Browse the repository at this point in the history
(cherry picked from commit 26463ac)

Co-authored-by: Tian <tian@dydx.exchange>
  • Loading branch information
mergify[bot] and tqin7 authored Oct 20, 2023
1 parent d06e3b9 commit 0516d34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protocol/scripts/bridge_events/bridge_events.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 0516d34

Please sign in to comment.