Skip to content

Commit

Permalink
Filter nil exit event ids
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan-Ethernal committed Jun 13, 2023
1 parent 84c5490 commit 25ba036
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion command/bridge/deposit/erc20/deposit_erc20.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 25ba036

Please sign in to comment.