aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-08-06 16:05:34 +0800
committerobscuren <geffobscura@gmail.com>2014-08-06 16:05:34 +0800
commitc7afb5fb72579fb61139a6365c380a4d9370a7b9 (patch)
tree39dc5ea2cf3ab00664caee6bb24ee278ef48b642
parent852d1ee395feabaa0e72265106374a0df197db9a (diff)
downloaddexon-c7afb5fb72579fb61139a6365c380a4d9370a7b9.tar.gz
dexon-c7afb5fb72579fb61139a6365c380a4d9370a7b9.tar.zst
dexon-c7afb5fb72579fb61139a6365c380a4d9370a7b9.zip
output dump string, not undefined
-rw-r--r--ethereum/repl/javascript_runtime.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/ethereum/repl/javascript_runtime.go b/ethereum/repl/javascript_runtime.go
index 29b5f442f..026e6f374 100644
--- a/ethereum/repl/javascript_runtime.go
+++ b/ethereum/repl/javascript_runtime.go
@@ -181,9 +181,9 @@ func (self *JSRE) dump(call otto.FunctionCall) otto.Value {
state = self.ethereum.StateManager().CurrentState()
}
- fmt.Println(state.Dump())
+ v, _ := self.vm.ToValue(state.Dump())
- return otto.UndefinedValue()
+ return v
}
func (self *JSRE) stopMining(call otto.FunctionCall) otto.Value {