Merge pull request #536 from zsfelfoldi/develop

using robertkrimen/otto, godeps updated
This commit is contained in:
Jeffrey Wilcke
2015-03-22 21:45:56 +01:00
144 changed files with 4987 additions and 13117 deletions

View File

@@ -14,7 +14,7 @@ import (
"github.com/ethereum/go-ethereum/rpc"
"github.com/ethereum/go-ethereum/state"
"github.com/ethereum/go-ethereum/xeth"
"github.com/obscuren/otto"
"github.com/robertkrimen/otto"
)
/*

View File

@@ -91,7 +91,14 @@ func newJSRE(ethereum *eth.Ethereum, libPath string) *jsre {
func (js *jsre) apiBindings() {
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)
//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)

View File

@@ -2,7 +2,7 @@ package main
import (
"fmt"
"github.com/obscuren/otto"
"github.com/robertkrimen/otto"
"os"
"path"
"testing"