From c7afb5fb72579fb61139a6365c380a4d9370a7b9 Mon Sep 17 00:00:00 2001 From: obscuren Date: Wed, 6 Aug 2014 10:05:34 +0200 Subject: [PATCH] output dump string, not undefined --- ethereum/repl/javascript_runtime.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ethereum/repl/javascript_runtime.go b/ethereum/repl/javascript_runtime.go index 29b5f442f6..026e6f374c 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 {