Skip to content

Commit

Permalink
(fix) Fix error handling in SyncBroadcastSignedTx
Browse files Browse the repository at this point in the history
  • Loading branch information
shibaeff committed Oct 3, 2024
1 parent b7a87c3 commit 53fd4c4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client/chain/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 53fd4c4

Please sign in to comment.