REST bank transfers fail due to encoding. (#6536)

Bank module REST endpoint bank/accounts/{addr}/transfers
was returning invalid StdTx format.
This commit is contained in:
Jonathan Gimeno
2020-07-02 05:16:39 +02:00
committed by GitHub
parent 37cc04081e
commit 8f96ec0585
4 changed files with 130 additions and 1 deletions
+1 -1
View File
@@ -188,7 +188,7 @@ func WriteGeneratedTxResponse(
return
}
output, err := ctx.JSONMarshaler.MarshalJSON(tx)
output, err := ctx.JSONMarshaler.MarshalJSON(tx.GetTx())
if rest.CheckInternalServerError(w, err) {
return
}