mirror of
https://gitlab.com/pulsechaincom/go-pulse.git
synced 2024-12-24 20:37:17 +00:00
"fixed" transaction view
This commit is contained in:
parent
0c0708076e
commit
0ed3edc99e
@ -103,7 +103,7 @@ ApplicationWindow {
|
||||
|
||||
return views
|
||||
} catch(e) {
|
||||
ethx.note(e)
|
||||
console.log(e)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -28,7 +28,7 @@ Rectangle {
|
||||
text: "Address"
|
||||
}
|
||||
TextField {
|
||||
text: ""//eth.key().address
|
||||
text: eth.coinbase()
|
||||
width: 500
|
||||
}
|
||||
|
||||
|
@ -20,10 +20,9 @@ Rectangle {
|
||||
}
|
||||
|
||||
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)
|
||||
menuItem.secondaryTitle = eth.numberToHuman("0")
|
||||
//menuItem.secondaryTitle = eth.numberToHuman(eth.balanceAt(eth.key().address))
|
||||
menuItem.secondaryTitle = eth.numberToHuman(eth.balanceAt(eth.coinbase()))
|
||||
}
|
||||
|
||||
ListModel {
|
||||
@ -131,7 +130,7 @@ Rectangle {
|
||||
onClicked: {
|
||||
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})
|
||||
var res = eth.transact({from: eth.coinbase(), to: txTo.text, value: value, gas: "500", gasPrice: gasPrice})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user