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

alert tx - not working

parent 56b19ca0
......@@ -639,6 +639,8 @@ function run () {
editor.clearAnnotations()
})
function startdebugging (txHash) {
self.event.trigger('debuggingRequested', [])
transactionDebugger.debug(txHash)
......
......@@ -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) {
......
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