From 7fc2e681667b8df443fd534992c22366d30c8c3c Mon Sep 17 00:00:00 2001 From: Rob Stupay Date: Thu, 31 Aug 2017 22:56:34 +0200 Subject: [PATCH] alert tx - not working --- src/app.js | 2 ++ src/app/tabs/run-tab.js | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/app.js b/src/app.js index 0c5fc951fc..8b77a8ff0b 100644 --- a/src/app.js +++ b/src/app.js @@ -639,6 +639,8 @@ function run () { editor.clearAnnotations() }) + + function startdebugging (txHash) { self.event.trigger('debuggingRequested', []) transactionDebugger.debug(txHash) diff --git a/src/app/tabs/run-tab.js b/src/app/tabs/run-tab.js index 1e8e82944b..214773e4fa 100644 --- a/src/app/tabs/run-tab.js +++ b/src/app/tabs/run-tab.js @@ -293,6 +293,7 @@ function contractDropdown (appAPI, appEvents, instanceContainer) { // ADD BUTTONS AT ADDRESS AND CREATE function createInstance () { + appAPI.logMessage('transaction added ...') var contractNames = document.querySelector(`.${css.contractNames.classNames[0]}`) var contracts = appAPI.getContracts() var contract = appAPI.getContracts()[contractNames.children[contractNames.selectedIndex].innerHTML] @@ -300,7 +301,7 @@ function contractDropdown (appAPI, appEvents, instanceContainer) { var args = createButtonInput.value txFormat.buildData(contract, contracts, true, constructor, args, appAPI.udapp(), (error, data) => { if (!error) { - appAPI.logMessage('Transaction added ...') + // appAPI.logMessage('transaction added ...') txExecution.createContract(data, appAPI.udapp(), (error, txResult) => { if (!error) { var isVM = executionContext.isVM() @@ -322,6 +323,7 @@ function contractDropdown (appAPI, appEvents, instanceContainer) { modalDialogCustom.alert(error) } }) + // appAPI.logMessage('transaction added ...') } function loadFromAddress (appAPI) {