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 8b441bd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 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,9 @@ 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 8b441bd

Please sign in to comment.