aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 {