From 85bd74bb7ac956a1aa90d02dd08c2134033c14c0 Mon Sep 17 00:00:00 2001 From: Ethan Buchman Date: Fri, 1 Jun 2018 00:07:02 -0400 Subject: [PATCH] fix grpc_client.go --- test/app/grpc_client.go | 9 +++++++-- 1 file changed, 7 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 9d024b1bc..acd36793c --- 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,10 @@ 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)) }