From 08190bd8bcdd5864250f1c23e61cab0ccbed81a2 Mon Sep 17 00:00:00 2001 From: Thomas Bruyelle Date: Fri, 29 Jul 2022 15:47:03 +0200 Subject: [PATCH] fix tx broadcast error message --- ignite/pkg/cosmosclient/cosmosclient.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ignite/pkg/cosmosclient/cosmosclient.go b/ignite/pkg/cosmosclient/cosmosclient.go index 8106cf8326..9e4cdde49d 100644 --- a/ignite/pkg/cosmosclient/cosmosclient.go +++ b/ignite/pkg/cosmosclient/cosmosclient.go @@ -432,14 +432,14 @@ func (c *Client) checkAccountBalance(ctx context.Context, address string) error func handleBroadcastResult(resp *sdktypes.TxResponse, err error) error { if err != nil { if strings.Contains(err.Error(), "not found") { - return errors.New("make sure that your SPN account has enough balance") + return errors.New("make sure that your account has enough balance") } return err } if resp.Code > 0 { - return fmt.Errorf("SPN error with '%d' code: %s", resp.Code, resp.RawLog) + return fmt.Errorf("error code: '%d' msg: %s", resp.Code, resp.RawLog) } return nil }