mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 04:36:42 +00:00
explicit binding of jeth.Send
This commit is contained in:
parent
8393dab470
commit
a1518a75f2
1 changed files with 7 additions and 0 deletions
|
|
@ -92,6 +92,13 @@ func (js *jsre) apiBindings() {
|
||||||
ethApi := rpc.NewEthereumApi(js.xeth, js.ethereum.DataDir)
|
ethApi := rpc.NewEthereumApi(js.xeth, js.ethereum.DataDir)
|
||||||
js.re.Bind("jeth", rpc.NewJeth(ethApi, js.re.ToVal))
|
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)
|
_, err := js.re.Eval(re.BigNumber_JS)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue