Skip to content

Commit

Permalink
format tx hash
Browse files Browse the repository at this point in the history
  • Loading branch information
giansalex committed Apr 19, 2022
1 parent cf4a274 commit 42e964c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/handler/tx.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package handler

import (
"encoding/hex"
"encoding/json"
"fmt"
"net/http"
Expand Down Expand Up @@ -62,7 +61,7 @@ func TxsHandler(cli client.ABCIClient) http.HandlerFunc {
}

result := BroadcastResponse{
Hash: hex.EncodeToString(res.Hash),
Hash: fmt.Sprintf("%X", res.Hash),
Height: res.Height,
Result: res.DeliverTx,
}
Expand Down

0 comments on commit 42e964c

Please sign in to comment.