aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-12-03 05:23:20 +0800
committerobscuren <geffobscura@gmail.com>2014-12-03 05:23:20 +0800
commitedc52bdcbf65b396a838a347b370ea859ae58247 (patch)
treeeb9539126d6afd6532f4669103431843473b0389 /cmd
parent0a22dc2ce5d0e69004272f44af972e387144c126 (diff)
downloadgo-tangerine-edc52bdcbf65b396a838a347b370ea859ae58247.tar
go-tangerine-edc52bdcbf65b396a838a347b370ea859ae58247.tar.gz
go-tangerine-edc52bdcbf65b396a838a347b370ea859ae58247.tar.bz2
go-tangerine-edc52bdcbf65b396a838a347b370ea859ae58247.tar.lz
go-tangerine-edc52bdcbf65b396a838a347b370ea859ae58247.tar.xz
go-tangerine-edc52bdcbf65b396a838a347b370ea859ae58247.tar.zst
go-tangerine-edc52bdcbf65b396a838a347b370ea859ae58247.zip
Updated value for mined blocks. Closes #197
Diffstat (limited to 'cmd')
-rw-r--r--cmd/mist/assets/qml/views/wallet.qml12
1 files changed, 9 insertions, 3 deletions
diff --git a/cmd/mist/assets/qml/views/wallet.qml b/cmd/mist/assets/qml/views/wallet.qml
index a57e7869a..9ffb1024d 100644
--- a/cmd/mist/assets/qml/views/wallet.qml
+++ b/cmd/mist/assets/qml/views/wallet.qml
@@ -16,7 +16,13 @@ Rectangle {
anchors.fill: parent
function onReady() {
- menuItem.secondaryTitle = eth.numberToHuman(eth.balanceAt(eth.key().address))
+ setBalance()
+ }
+
+ function setBalance() {
+ balance.text = "<b>Balance</b>: " + eth.numberToHuman(eth.balanceAt(eth.key().address))
+ if(menuItem)
+ menuItem.secondaryTitle = eth.numberToHuman(eth.balanceAt(eth.key().address))
}
ListModel {
@@ -39,7 +45,6 @@ Rectangle {
Text {
id: balance
- text: "<b>Balance</b>: " + eth.numberToHuman(eth.balanceAt(eth.key().address))
font.pixelSize: 24
anchors {
horizontalCenter: parent.horizontalCenter
@@ -126,7 +131,6 @@ Rectangle {
var value = txValue.text + denomModel.get(valueDenom.currentIndex).zeros;
var gasPrice = "10000000000000"
var res = eth.transact({from: eth.key().privateKey, to: txTo.text, value: value, gas: "500", gasPrice: gasPrice})
- console.log(res)
}
}
}
@@ -158,6 +162,8 @@ Rectangle {
}
function addTxs(messages) {
+ setBalance()
+
for(var i = 0; i < messages.length; i++) {
var message = messages.get(i);
var to = eth.lookupName(message.to);