fix grpc_client.go

This commit is contained in:
Ethan Buchman
2018-06-03 14:01:45 +02:00
committed by Alexander Simmerl
parent 22f839fc5d
commit 3d95dadec6
Executable → Regular
+7 -2
View File
@@ -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))
}