aboutsummaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-03-25 06:50:27 +0800
committerobscuren <geffobscura@gmail.com>2015-03-25 06:50:27 +0800
commit97bf9f1521438ae33ba4d2e27890ade82f90f21f (patch)
tree116818128b860a3ed3abb86f61a380b33bb54e30 /rpc
parent3d5f48a1602a2dbe6d9a4d123e5b3aa4f51d53a1 (diff)
downloaddexon-97bf9f1521438ae33ba4d2e27890ade82f90f21f.tar
dexon-97bf9f1521438ae33ba4d2e27890ade82f90f21f.tar.gz
dexon-97bf9f1521438ae33ba4d2e27890ade82f90f21f.tar.bz2
dexon-97bf9f1521438ae33ba4d2e27890ade82f90f21f.tar.lz
dexon-97bf9f1521438ae33ba4d2e27890ade82f90f21f.tar.xz
dexon-97bf9f1521438ae33ba4d2e27890ade82f90f21f.tar.zst
dexon-97bf9f1521438ae33ba4d2e27890ade82f90f21f.zip
Temp fix for console output
Diffstat (limited to 'rpc')
-rw-r--r--rpc/jeth.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/rpc/jeth.go b/rpc/jeth.go
index 4e83be8a6..9d33f45e1 100644
--- a/rpc/jeth.go
+++ b/rpc/jeth.go
@@ -46,9 +46,11 @@ func (self *Jeth) Send(call otto.FunctionCall) (response otto.Value) {
}
self.re.Set("ret_jsonrpc", jsonrpcver)
self.re.Set("ret_id", req.Id)
- self.re.Set("ret_result", respif)
+
+ res, _ := json.Marshal(respif)
+ self.re.Set("ret_result", string(res))
response, err = self.re.Run(`
- ret_response = { jsonrpc: ret_jsonrpc, id: ret_id, result: ret_result };
+ ret_response = { jsonrpc: ret_jsonrpc, id: ret_id, result: JSON.parse(ret_result) };
`)
return
}