Skip to content

Commit 08190bd

Browse files
committed
fix tx broadcast error message
1 parent 9c7e47c commit 08190bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ignite/pkg/cosmosclient/cosmosclient.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -432,14 +432,14 @@ func (c *Client) checkAccountBalance(ctx context.Context, address string) error
432432
func handleBroadcastResult(resp *sdktypes.TxResponse, err error) error {
433433
if err != nil {
434434
if strings.Contains(err.Error(), "not found") {
435-
return errors.New("make sure that your SPN account has enough balance")
435+
return errors.New("make sure that your account has enough balance")
436436
}
437437

438438
return err
439439
}
440440

441441
if resp.Code > 0 {
442-
return fmt.Errorf("SPN error with '%d' code: %s", resp.Code, resp.RawLog)
442+
return fmt.Errorf("error code: '%d' msg: %s", resp.Code, resp.RawLog)
443443
}
444444
return nil
445445
}

0 commit comments

Comments
 (0)