Merge PR #3591: Fix setting tx hash when nil
* fix setting the tx hash when nil * add a pending log entry
This commit is contained in:
parent
ed2b427fd6
commit
1d4bb1a863
|
@ -45,6 +45,7 @@ BUG FIXES
|
|||
* Gaia CLI
|
||||
|
||||
* Gaia
|
||||
* [\#3585] Fix setting the tx hash in `NewResponseFormatBroadcastTxCommit`.
|
||||
|
||||
* SDK
|
||||
|
||||
|
|
|
@ -70,9 +70,14 @@ func NewResponseResultTx(res *ctypes.ResultTx, tx Tx) TxResponse {
|
|||
}
|
||||
|
||||
func NewResponseFormatBroadcastTxCommit(res *ctypes.ResultBroadcastTxCommit) TxResponse {
|
||||
var txHash string
|
||||
if res.Hash != nil {
|
||||
txHash = res.Hash.String()
|
||||
}
|
||||
|
||||
return TxResponse{
|
||||
Height: res.Height,
|
||||
TxHash: res.Hash.String(),
|
||||
TxHash: txHash,
|
||||
Code: res.DeliverTx.Code,
|
||||
Data: res.DeliverTx.Data,
|
||||
Log: res.DeliverTx.Log,
|
||||
|
|
Loading…
Reference in New Issue