Added isContract to gui

This commit is contained in:
Maran
2014-04-11 17:05:02 -04:00
parent 3f82d5172f
commit ab8d96258e
2 changed files with 11 additions and 2 deletions
+8 -1
View File
@@ -140,6 +140,7 @@ ApplicationWindow {
anchors.fill: parent
TableViewColumn{ role: "value" ; title: "Value" ; width: 100 }
TableViewColumn{ role: "address" ; title: "Address" ; width: 430 }
TableViewColumn{ role: "contract" ; title: "Contract" ; width: 100 }
model: txModel
}
@@ -448,7 +449,13 @@ ApplicationWindow {
}
function addTx(tx) {
txModel.insert(0, {hash: tx.hash, address: tx.address, value: tx.value})
var isContract
if (tx.contract == true){
isContract = "Yes"
}else{
isContract = "No"
}
txModel.insert(0, {hash: tx.hash, address: tx.address, value: tx.value, contract: isContract})
}
function addBlock(block) {