Skip to content

Commit

Permalink
output dump string, not undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
obscuren committed Aug 6, 2014
1 parent 852d1ee commit c7afb5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ethereum/repl/javascript_runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c7afb5f

Please sign in to comment.