Commit ce05634f authored by obscuren's avatar obscuren

Debug only if a tx is set. Fixes #134

parent 6f08e301
...@@ -210,7 +210,7 @@ Rectangle { ...@@ -210,7 +210,7 @@ Rectangle {
anchors.topMargin: 10 anchors.topMargin: 10
text: "Debug contract" text: "Debug contract"
onClicked: { onClicked: {
if(tx.createsContract){ if(tx && tx.createsContract){
eth.startDbWithCode(tx.rawData) eth.startDbWithCode(tx.rawData)
}else { }else {
eth.startDbWithContractAndData(tx.address, tx.rawData) eth.startDbWithContractAndData(tx.address, tx.rawData)
......
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