migrate all JSON to new JSON encoder (#4975)

Uses new JSON encoder in #4955 for all JSON. Branched off of #4968.
This commit is contained in:
Erik Grinaker
2020-06-08 14:22:59 +02:00
committed by GitHub
parent ba3a2dde37
commit db8f1b3df3
23 changed files with 89 additions and 79 deletions

View File

@@ -7,8 +7,7 @@ import (
"context"
amino "github.com/tendermint/go-amino"
tmjson "github.com/tendermint/tendermint/libs/json"
coregrpc "github.com/tendermint/tendermint/rpc/grpc"
)
@@ -34,7 +33,7 @@ func main() {
os.Exit(1)
}
bz, err := amino.NewCodec().MarshalJSON(res)
bz, err := tmjson.Marshal(res)
if err != nil {
fmt.Println(err)
os.Exit(1)