From c59d7a899b0ca121b3f982fa12405629109f1b47 Mon Sep 17 00:00:00 2001 From: obscuren Date: Mon, 11 Aug 2014 16:24:35 +0200 Subject: Added open js option for repetitive tasks in ethereal --- ethereum/cmd.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'ethereum/cmd.go') diff --git a/ethereum/cmd.go b/ethereum/cmd.go index ff2b8409c..5ddc91619 100644 --- a/ethereum/cmd.go +++ b/ethereum/cmd.go @@ -1,11 +1,13 @@ package main import ( + "io/ioutil" + "os" + "github.com/ethereum/eth-go" "github.com/ethereum/go-ethereum/ethereum/repl" + "github.com/ethereum/go-ethereum/javascript" "github.com/ethereum/go-ethereum/utils" - "io/ioutil" - "os" ) func InitJsConsole(ethereum *eth.Ethereum) { @@ -25,7 +27,7 @@ func ExecJsFile(ethereum *eth.Ethereum, InputFile string) { if err != nil { logger.Fatalln(err) } - re := ethrepl.NewJSRE(ethereum) + re := javascript.NewJSRE(ethereum) utils.RegisterInterrupt(func(os.Signal) { re.Stop() }) -- cgit