Skip to content

Commit

Permalink
fix: package cosmosaccount Account.PubKey ignore error (ignite#3487)
Browse files Browse the repository at this point in the history
Signed-off-by: Abirdcfly <fp544037857@gmail.com>
Co-authored-by: Danilo Pantani <danpantani@gmail.com>
  • Loading branch information
Abirdcfly and Pantani committed May 22, 2023
1 parent 5956021 commit fc739e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ignite/pkg/cosmosaccount/cosmosaccount.go
Expand Up @@ -152,7 +152,7 @@ func (a Account) Address(accPrefix string) (string, error) {
func (a Account) PubKey() (string, error) {
pk, err := a.Record.GetPubKey()
if err != nil {
return "", nil
return "", err
}

return pk.String(), nil
Expand Down
1 change: 1 addition & 0 deletions ignite/pkg/httpstatuschecker/httpstatuschecker.go
Expand Up @@ -42,6 +42,7 @@ func (c *checker) check(ctx context.Context) (bool, error) {
}
res, err := c.c.Do(req)
if err != nil {
// ignore some errors like "connect: connection refused"
return false, nil
}
defer res.Body.Close()
Expand Down

0 comments on commit fc739e2

Please sign in to comment.