Skip to content
This repository has been archived by the owner on Jun 9, 2024. It is now read-only.

Commit

Permalink
chore(repo): cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
itsdevbear committed Oct 9, 2023
1 parent 4175276 commit 96e1b88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cosmos/config/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func (c *AppOptionsParser) GetCommonAddress(key string) (common.Address, error)
return common.Address{}, err
}
if !common.IsHexAddress(addressStr) {
return common.Address{}, fmt.Errorf("invalid address: %s", addressStr)
return common.Address{}, fmt.Errorf("invalid address: %s flag %s", addressStr, key)
}
return common.HexToAddress(addressStr), nil
}
Expand All @@ -70,7 +70,7 @@ func (c *AppOptionsParser) GetCommonAddressList(key string) ([]common.Address, e
for _, addressStr := range addressStrs {
address := common.HexToAddress(addressStr)
if !common.IsHexAddress(addressStr) {
return nil, fmt.Errorf("invalid address: %s", addressStr)
return nil, fmt.Errorf("invalid address in list: %s flag %s", addressStr, key)
}
addresses = append(addresses, address)
}
Expand Down

0 comments on commit 96e1b88

Please sign in to comment.