aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/ethereum/main.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2015-03-10 09:00:57 +0800
committerFelix Lange <fjl@twurst.com>2015-03-10 09:00:57 +0800
commit9f0e3bd286472f85ab2457fc19cd48cdf12df110 (patch)
tree21dd9af3a944f8f63fc8734379cb7aa8e328f7b7 /cmd/ethereum/main.go
parent395da0e7c1accfaeda6527a473e9a31b11fe88a8 (diff)
downloaddexon-9f0e3bd286472f85ab2457fc19cd48cdf12df110.tar
dexon-9f0e3bd286472f85ab2457fc19cd48cdf12df110.tar.gz
dexon-9f0e3bd286472f85ab2457fc19cd48cdf12df110.tar.bz2
dexon-9f0e3bd286472f85ab2457fc19cd48cdf12df110.tar.lz
dexon-9f0e3bd286472f85ab2457fc19cd48cdf12df110.tar.xz
dexon-9f0e3bd286472f85ab2457fc19cd48cdf12df110.tar.zst
dexon-9f0e3bd286472f85ab2457fc19cd48cdf12df110.zip
cmd/ethereum: unlock accounts on JS REPL
Diffstat (limited to 'cmd/ethereum/main.go')
-rw-r--r--cmd/ethereum/main.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd/ethereum/main.go b/cmd/ethereum/main.go
index d0edef81d..1703c02bb 100644
--- a/cmd/ethereum/main.go
+++ b/cmd/ethereum/main.go
@@ -157,11 +157,12 @@ func run(ctx *cli.Context) {
func runjs(ctx *cli.Context) {
eth := utils.GetEthereum(ClientIdentifier, Version, ctx)
startEth(ctx, eth)
+ repl := newJSRE(eth)
if len(ctx.Args()) == 0 {
- runREPL(eth)
+ repl.interactive()
} else {
for _, file := range ctx.Args() {
- execJsFile(eth, file)
+ repl.exec(file)
}
}
eth.Stop()