aboutsummaryrefslogtreecommitdiffstats
path: root/mist/gui.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-10-23 07:01:41 +0800
committerobscuren <geffobscura@gmail.com>2014-10-23 07:01:41 +0800
commit411b9800aed6bff666df5ffad799c49b17af9a43 (patch)
treefb0f89f42dff71fa4304145e05c90b62c9e10e23 /mist/gui.go
parent2e45e4d0151e893574acdef5b61cb2ef9b31556c (diff)
downloadgo-tangerine-411b9800aed6bff666df5ffad799c49b17af9a43.tar
go-tangerine-411b9800aed6bff666df5ffad799c49b17af9a43.tar.gz
go-tangerine-411b9800aed6bff666df5ffad799c49b17af9a43.tar.bz2
go-tangerine-411b9800aed6bff666df5ffad799c49b17af9a43.tar.lz
go-tangerine-411b9800aed6bff666df5ffad799c49b17af9a43.tar.xz
go-tangerine-411b9800aed6bff666df5ffad799c49b17af9a43.tar.zst
go-tangerine-411b9800aed6bff666df5ffad799c49b17af9a43.zip
Reflect VM Env changes
Diffstat (limited to 'mist/gui.go')
-rw-r--r--mist/gui.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/mist/gui.go b/mist/gui.go
index 1bb8a1934..2c19680c0 100644
--- a/mist/gui.go
+++ b/mist/gui.go
@@ -382,7 +382,7 @@ func (gui *Gui) update() {
state := gui.eth.StateManager().TransState()
unconfirmedFunds := new(big.Int)
- gui.win.Root().Call("setWalletValue", fmt.Sprintf("%v", ethutil.CurrencyToString(state.GetAccount(gui.address()).Balance)))
+ gui.win.Root().Call("setWalletValue", fmt.Sprintf("%v", ethutil.CurrencyToString(state.GetAccount(gui.address()).Balance())))
lastBlockLabel := gui.getObjectByName("lastBlockLabel")
miningLabel := gui.getObjectByName("miningLabel")
@@ -410,7 +410,7 @@ func (gui *Gui) update() {
case ethchain.NewBlockEvent:
gui.processBlock(ev.Block, false)
if bytes.Compare(ev.Block.Coinbase, gui.address()) == 0 {
- gui.setWalletValue(gui.eth.StateManager().CurrentState().GetAccount(gui.address()).Balance, nil)
+ gui.setWalletValue(gui.eth.StateManager().CurrentState().GetAccount(gui.address()).Balance(), nil)
}
case ethchain.TxEvent:
@@ -424,7 +424,7 @@ func (gui *Gui) update() {
unconfirmedFunds.Add(unconfirmedFunds, tx.Value)
}
- gui.setWalletValue(object.Balance, unconfirmedFunds)
+ gui.setWalletValue(object.Balance(), unconfirmedFunds)
gui.insertTransaction("pre", tx)
@@ -442,7 +442,7 @@ func (gui *Gui) update() {
gui.txDb.Put(tx.Hash(), tx.RlpEncode())
}
- gui.setWalletValue(object.Balance, nil)
+ gui.setWalletValue(object.Balance(), nil)
state.UpdateStateObject(object)
}