From 11dd44a40574b611c1cd2a1bd24846fb60ec6221 Mon Sep 17 00:00:00 2001 From: Jeffery Walsh Date: Sun, 9 Jul 2023 02:32:59 -0700 Subject: [PATCH] emtpy addr --- packages/eventindexer/cli/cli.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/eventindexer/cli/cli.go b/packages/eventindexer/cli/cli.go index 64103dd0849..c8b9dbe2835 100644 --- a/packages/eventindexer/cli/cli.go +++ b/packages/eventindexer/cli/cli.go @@ -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