@@ -20,7 +20,7 @@ type TxResponse struct {
20
20
Height int64 `json:"height,omitempty"`
21
21
TxHash string `json:"txhash,omitempty"`
22
22
Code uint32 `json:"code,omitempty"`
23
- Data string `json:"data,omitempty"`
23
+ Data [] byte `json:"data,omitempty"`
24
24
RawLog string `json:"raw_log,omitempty"`
25
25
GasWanted int64 `json:"gas_wanted,omitempty"`
26
26
GasUsed int64 `json:"gas_used,omitempty"`
@@ -61,7 +61,7 @@ func TxsHandler(cli client.ABCIClient) http.HandlerFunc {
61
61
TxHash : fmt .Sprintf ("%X" , res .Hash ),
62
62
Height : res .Height ,
63
63
Code : code ,
64
- Data : string ( res .DeliverTx .Data ) ,
64
+ Data : res .DeliverTx .Data ,
65
65
RawLog : log ,
66
66
GasWanted : res .DeliverTx .GasWanted ,
67
67
GasUsed : res .DeliverTx .GasUsed ,
@@ -104,7 +104,7 @@ func ProtoTxsHandler(cli client.ABCIClient) http.HandlerFunc {
104
104
TxHash : fmt .Sprintf ("%X" , res .Hash ),
105
105
Height : res .Height ,
106
106
Code : code ,
107
- Data : string ( res .DeliverTx .Data ) ,
107
+ Data : res .DeliverTx .Data ,
108
108
RawLog : log ,
109
109
GasWanted : res .DeliverTx .GasWanted ,
110
110
GasUsed : res .DeliverTx .GasUsed ,
0 commit comments