From a1518a75f28389e31d1214851545304b3ba84089 Mon Sep 17 00:00:00 2001 From: Fefe Date: Fri, 13 Mar 2015 22:15:00 +0100 Subject: [PATCH] explicit binding of jeth.Send --- cmd/ethereum/js.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cmd/ethereum/js.go b/cmd/ethereum/js.go index 361aaf7ea7..eaa454623f 100644 --- a/cmd/ethereum/js.go +++ b/cmd/ethereum/js.go @@ -92,6 +92,13 @@ func (js *jsre) apiBindings() { ethApi := rpc.NewEthereumApi(js.xeth, js.ethereum.DataDir) js.re.Bind("jeth", rpc.NewJeth(ethApi, js.re.ToVal)) + jeth := rpc.NewJeth(ethApi, js.re.ToVal) + //js.re.Bind("jeth", jeth) + js.re.Set("jeth", struct{}{}) + t, _ := js.re.Get("jeth") + jethObj := t.Object() + jethObj.Set("send", jeth.Send) + _, err := js.re.Eval(re.BigNumber_JS) if err != nil {