forked from cerc-io/plugeth
Minor UI change
This commit is contained in:
parent
78b6e7ad95
commit
6451a7187a
@ -40,6 +40,8 @@ func (lib *EthLib) CreateTx(receiver, a, data string) string {
|
||||
|
||||
if len(receiver) == 0 {
|
||||
ethutil.Config.Log.Infof("Contract addr %x", tx.Hash()[12:])
|
||||
} else {
|
||||
ethutil.Config.Log.Infof("Tx hash %x", tx.Hash())
|
||||
}
|
||||
|
||||
return ethutil.Hex(tx.Hash())
|
||||
|
10
wallet.qml
10
wallet.qml
@ -221,6 +221,10 @@ ApplicationWindow {
|
||||
text: "Import App"
|
||||
}
|
||||
|
||||
Label {
|
||||
id: walletValueLabel
|
||||
}
|
||||
|
||||
Label {
|
||||
anchors.right: peerImage.left
|
||||
anchors.rightMargin: 5
|
||||
@ -270,7 +274,7 @@ ApplicationWindow {
|
||||
text: "Add"
|
||||
onClicked: {
|
||||
ui.connectToPeer(addrField.text)
|
||||
addrPeerWin.visible = false
|
||||
addPeerWin.visible = false
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -291,6 +295,10 @@ ApplicationWindow {
|
||||
|
||||
}
|
||||
|
||||
function setWalletValue(value) {
|
||||
walletValueLabel.text = value
|
||||
}
|
||||
|
||||
function addTx(tx) {
|
||||
txModel.insert(0, {hash: tx.hash, address: tx.address, value: tx.value})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user