From 25ba03623f175b8bdfc14323518957ce1cfabcc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Negovanovi=C4=87?= Date: Tue, 13 Jun 2023 21:33:45 +0200 Subject: [PATCH] Filter nil exit event ids --- command/bridge/deposit/erc20/deposit_erc20.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/command/bridge/deposit/erc20/deposit_erc20.go b/command/bridge/deposit/erc20/deposit_erc20.go index 96aa5f56d1..48efebecf8 100644 --- a/command/bridge/deposit/erc20/deposit_erc20.go +++ b/command/bridge/deposit/erc20/deposit_erc20.go @@ -238,7 +238,10 @@ func runCommand(cmd *cobra.Command, _ []string) { var childToken *types.Address for x := range bridgeTxCh { - exitEventIDs = append(exitEventIDs, x.exitEventID) + if x.exitEventID != nil { + exitEventIDs = append(exitEventIDs, x.exitEventID) + } + blockNumbers = append(blockNumbers, x.blockNumber) if x.childTokenAddr != nil {