From 53fd4c47e2e62b7534361149f23ba28f985fefca Mon Sep 17 00:00:00 2001 From: Pavel Shibaev Date: Thu, 3 Oct 2024 17:35:41 +0200 Subject: [PATCH] (fix) Fix error handling in SyncBroadcastSignedTx --- client/chain/chain.go | 1 + 1 file changed, 1 insertion(+) diff --git a/client/chain/chain.go b/client/chain/chain.go index 1cb479fb..16b7b234 100644 --- a/client/chain/chain.go +++ b/client/chain/chain.go @@ -845,6 +845,7 @@ func (c *chainClient) SyncBroadcastSignedTx(txBytes []byte) (*txtypes.BroadcastT if errRes := client.CheckCometError(err, txBytes); errRes != nil { return &txtypes.BroadcastTxResponse{TxResponse: errRes}, err } + return nil, err } if resultTx.TxResult.Code != 0 { resResultTx := sdk.NewResponseResultTx(resultTx, res.TxResponse.Tx, res.TxResponse.Timestamp)