Commit 0ed3edc9 authored by obscuren's avatar obscuren

"fixed" transaction view

parent 0c070807
...@@ -103,7 +103,7 @@ ApplicationWindow { ...@@ -103,7 +103,7 @@ ApplicationWindow {
return views return views
} catch(e) { } catch(e) {
ethx.note(e) console.log(e)
} }
} }
......
...@@ -28,7 +28,7 @@ Rectangle { ...@@ -28,7 +28,7 @@ Rectangle {
text: "Address" text: "Address"
} }
TextField { TextField {
text: ""//eth.key().address text: eth.coinbase()
width: 500 width: 500
} }
......
...@@ -20,10 +20,9 @@ Rectangle { ...@@ -20,10 +20,9 @@ Rectangle {
} }
function setBalance() { function setBalance() {
//balance.text = "<b>Balance</b>: " + eth.numberToHuman(eth.balanceAt(eth.key().address)) balance.text = "<b>Balance</b>: " + eth.numberToHuman(eth.balanceAt(eth.coinbase()))
if(menuItem) if(menuItem)
menuItem.secondaryTitle = eth.numberToHuman("0") menuItem.secondaryTitle = eth.numberToHuman(eth.balanceAt(eth.coinbase()))
//menuItem.secondaryTitle = eth.numberToHuman(eth.balanceAt(eth.key().address))
} }
ListModel { ListModel {
...@@ -131,7 +130,7 @@ Rectangle { ...@@ -131,7 +130,7 @@ Rectangle {
onClicked: { onClicked: {
var value = txValue.text + denomModel.get(valueDenom.currentIndex).zeros; var value = txValue.text + denomModel.get(valueDenom.currentIndex).zeros;
var gasPrice = "10000000000000" var gasPrice = "10000000000000"
//var res = eth.transact({from: eth.key().privateKey, to: txTo.text, value: value, gas: "500", gasPrice: gasPrice}) var res = eth.transact({from: eth.coinbase(), to: txTo.text, value: value, gas: "500", gasPrice: gasPrice})
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment