Commit 7fc2e681 authored by Rob Stupay's avatar Rob Stupay

alert tx - not working

parent 56b19ca0
...@@ -639,6 +639,8 @@ function run () { ...@@ -639,6 +639,8 @@ function run () {
editor.clearAnnotations() editor.clearAnnotations()
}) })
function startdebugging (txHash) { function startdebugging (txHash) {
self.event.trigger('debuggingRequested', []) self.event.trigger('debuggingRequested', [])
transactionDebugger.debug(txHash) transactionDebugger.debug(txHash)
......
...@@ -293,6 +293,7 @@ function contractDropdown (appAPI, appEvents, instanceContainer) { ...@@ -293,6 +293,7 @@ function contractDropdown (appAPI, appEvents, instanceContainer) {
// ADD BUTTONS AT ADDRESS AND CREATE // ADD BUTTONS AT ADDRESS AND CREATE
function createInstance () { function createInstance () {
appAPI.logMessage('transaction added ...')
var contractNames = document.querySelector(`.${css.contractNames.classNames[0]}`) var contractNames = document.querySelector(`.${css.contractNames.classNames[0]}`)
var contracts = appAPI.getContracts() var contracts = appAPI.getContracts()
var contract = appAPI.getContracts()[contractNames.children[contractNames.selectedIndex].innerHTML] var contract = appAPI.getContracts()[contractNames.children[contractNames.selectedIndex].innerHTML]
...@@ -300,7 +301,7 @@ function contractDropdown (appAPI, appEvents, instanceContainer) { ...@@ -300,7 +301,7 @@ function contractDropdown (appAPI, appEvents, instanceContainer) {
var args = createButtonInput.value var args = createButtonInput.value
txFormat.buildData(contract, contracts, true, constructor, args, appAPI.udapp(), (error, data) => { txFormat.buildData(contract, contracts, true, constructor, args, appAPI.udapp(), (error, data) => {
if (!error) { if (!error) {
appAPI.logMessage('Transaction added ...') // appAPI.logMessage('transaction added ...')
txExecution.createContract(data, appAPI.udapp(), (error, txResult) => { txExecution.createContract(data, appAPI.udapp(), (error, txResult) => {
if (!error) { if (!error) {
var isVM = executionContext.isVM() var isVM = executionContext.isVM()
...@@ -322,6 +323,7 @@ function contractDropdown (appAPI, appEvents, instanceContainer) { ...@@ -322,6 +323,7 @@ function contractDropdown (appAPI, appEvents, instanceContainer) {
modalDialogCustom.alert(error) modalDialogCustom.alert(error)
} }
}) })
// appAPI.logMessage('transaction added ...')
} }
function loadFromAddress (appAPI) { function loadFromAddress (appAPI) {
......
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