mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-03 11:45:18 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user