mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-18 19:00:46 +00:00
output dump string, not undefined
This commit is contained in:
parent
852d1ee395
commit
c7afb5fb72
1 changed files with 2 additions and 2 deletions
|
|
@ -181,9 +181,9 @@ func (self *JSRE) dump(call otto.FunctionCall) otto.Value {
|
||||||
state = self.ethereum.StateManager().CurrentState()
|
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 {
|
func (self *JSRE) stopMining(call otto.FunctionCall) otto.Value {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue