skip empty addresses

This commit is contained in:
Sami Mäkelä 2020-07-16 13:20:03 +03:00 committed by whyrusleeping
parent 6a403df100
commit f1b8e1a7b0

View File

@ -199,6 +199,9 @@ var genesisAddMsigsCmd = &cli.Command{
for _, e := range records {
var addrs []address.Address
for _, a := range e[7:] {
if a == "" {
continue
}
addr, err := address.NewFromString(a)
if err != nil {
return err