Skip to content

Commit

Permalink
Merge pull request #162 from binance-chain/release/v0.25.0-binance.19
Browse files Browse the repository at this point in the history
R4R: Rerelease v0.25.0-binance.19
  • Loading branch information
rickyyangz authored Jul 22, 2019
2 parents a96d2a2 + 0200b6f commit e91a500
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions client/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,13 @@ func CompleteAndBroadcastTxCli(txBldr authtxb.TxBuilder, cliCtx context.CLIConte
}

if cliCtx.Dry {
var tx auth.StdTx
if err = txBldr.Codec.UnmarshalBinaryLengthPrefixed(txBytes, &tx); err == nil {
json, err := txBldr.Codec.MarshalJSON(tx)
if err == nil {
fmt.Printf("TX JSON: %s\n", json)
}
}
hexBytes := make([]byte, len(txBytes)*2)
hex.Encode(hexBytes, txBytes)
txHash := cmn.HexBytes(tmhash.Sum(txBytes)).String()
Expand Down

0 comments on commit e91a500

Please sign in to comment.