diff --git a/ethereal/ui/gui.go b/ethereal/ui/gui.go index e267dabfd3..440e94e224 100644 --- a/ethereal/ui/gui.go +++ b/ethereal/ui/gui.go @@ -234,7 +234,7 @@ func (gui *Gui) update() { gui.setWalletValue(object.Amount, nil) - state.SetStateObject(object) + state.UpdateStateObject(object) } } } diff --git a/ethereum/repl.go b/ethereum/repl.go index 29d38afeff..d1243d19c2 100644 --- a/ethereum/repl.go +++ b/ethereum/repl.go @@ -53,6 +53,10 @@ type JSEthereum struct { vm *otto.Otto } +func (self *JSEthereum) GetBlock(hash string) otto.Value { + return self.toVal(self.PEthereum.GetBlock(hash)) +} + func (self *JSEthereum) GetKey() otto.Value { return self.toVal(self.PEthereum.GetKey()) }