From 3a01e3e39b9ce83ecb7444319407ee8bb00e3bf6 Mon Sep 17 00:00:00 2001 From: "Daniel A. Nagy" Date: Fri, 8 May 2015 17:52:44 +0200 Subject: Signing (almost) works. --- rpc/jeth.go | 2 -- 1 file changed, 2 deletions(-) (limited to 'rpc/jeth.go') diff --git a/rpc/jeth.go b/rpc/jeth.go index 4739316b2..ad52b72d7 100644 --- a/rpc/jeth.go +++ b/rpc/jeth.go @@ -2,7 +2,6 @@ package rpc import ( "encoding/json" - "github.com/ethereum/go-ethereum/jsre" "github.com/robertkrimen/otto" ) @@ -35,7 +34,6 @@ func (self *Jeth) Send(call otto.FunctionCall) (response otto.Value) { } jsonreq, err := json.Marshal(reqif) - var reqs []RpcRequest batch := true err = json.Unmarshal(jsonreq, &reqs) -- cgit v1.2.3 From df323cdb4e1aaab8e57cb1809a0bc5e47d307260 Mon Sep 17 00:00:00 2001 From: obscuren Date: Mon, 11 May 2015 01:24:40 +0200 Subject: rpc: display error message to stdout --- rpc/jeth.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'rpc/jeth.go') diff --git a/rpc/jeth.go b/rpc/jeth.go index 4739316b2..a08f9be8f 100644 --- a/rpc/jeth.go +++ b/rpc/jeth.go @@ -2,6 +2,7 @@ package rpc import ( "encoding/json" + "fmt" "github.com/ethereum/go-ethereum/jsre" "github.com/robertkrimen/otto" @@ -52,6 +53,7 @@ func (self *Jeth) Send(call otto.FunctionCall) (response otto.Value) { var respif interface{} err = self.ethApi.GetRequestReply(&req, &respif) if err != nil { + fmt.Println("Error response:", err) return self.err(call, -32603, err.Error(), req.Id) } call.Otto.Set("ret_jsonrpc", jsonrpcver) -- cgit v1.2.3