From 775fef31c2b8fb7ea36f0d57bae3bfa74d353100 Mon Sep 17 00:00:00 2001 From: Ethan Buchman Date: Tue, 5 Jun 2018 17:43:39 -0700 Subject: [PATCH] remove go-wire from test/app/grpc_client --- test/app/grpc_client.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) mode change 100755 => 100644 test/app/grpc_client.go diff --git a/test/app/grpc_client.go b/test/app/grpc_client.go old mode 100755 new mode 100644 index 9d024b1b..c55713c7 --- a/test/app/grpc_client.go +++ b/test/app/grpc_client.go @@ -2,12 +2,12 @@ package main import ( "encoding/hex" + "encoding/json" "fmt" "os" "context" - "github.com/tendermint/go-wire" "github.com/tendermint/tendermint/rpc/grpc" ) @@ -32,5 +32,11 @@ func main() { fmt.Println(err) os.Exit(1) } - fmt.Println(string(wire.JSONBytes(res))) + + bz, err := json.Marshal(res) + if err != nil { + fmt.Println(err) + os.Exit(1) + } + fmt.Println(string(bz)) }