Skip to content

Commit

Permalink
emtpy addr
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberhorsey committed Jul 9, 2023
1 parent 2278f4b commit 11dd44a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/eventindexer/cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,11 @@ func Run(

func stringsToAddresses(s []string) []common.Address {
a := []common.Address{}

for _, v := range s {
a = append(a, common.HexToAddress(v))
if v != "" {
a = append(a, common.HexToAddress(v))
}
}

return a
Expand Down

0 comments on commit 11dd44a

Please sign in to comment.