|
|
@ -252,10 +252,8 @@ function makeRecorder (registry, runTabEvent, self) { |
|
|
|
update account address in scenario.json |
|
|
|
update account address in scenario.json |
|
|
|
popup if scenario.json not open - "Open a file with transactions you want to replay and click play again" |
|
|
|
popup if scenario.json not open - "Open a file with transactions you want to replay and click play again" |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
var currentFile = self._deps.config.get('currentFile').api |
|
|
|
var currentFile = self._deps.config.get('currentFile') |
|
|
|
var udappUI = self._deps.config.get('udappUI').api |
|
|
|
self._deps.fileManager.fileProviderOf(currentFile).get(currentFile, (error, json) => { |
|
|
|
var fileManager = self._deps.config.get('fileManager').api |
|
|
|
|
|
|
|
fileManager.fileProviderOf(currentFile).get(currentFile, (error, json) => { |
|
|
|
|
|
|
|
if (error) { |
|
|
|
if (error) { |
|
|
|
modalDialogCustom.alert('Invalid Scenario File ' + error) |
|
|
|
modalDialogCustom.alert('Invalid Scenario File ' + error) |
|
|
|
} else { |
|
|
|
} else { |
|
|
@ -274,7 +272,7 @@ function makeRecorder (registry, runTabEvent, self) { |
|
|
|
var noInstancesText = self._view.noInstancesText |
|
|
|
var noInstancesText = self._view.noInstancesText |
|
|
|
if (noInstancesText.parentNode) { noInstancesText.parentNode.removeChild(noInstancesText) } |
|
|
|
if (noInstancesText.parentNode) { noInstancesText.parentNode.removeChild(noInstancesText) } |
|
|
|
recorder.run(txArray, accounts, options, abis, linkReferences, self._deps.udapp, (abi, address, contractName) => { |
|
|
|
recorder.run(txArray, accounts, options, abis, linkReferences, self._deps.udapp, (abi, address, contractName) => { |
|
|
|
self._view.instanceContainer.appendChild(udappUI.renderInstanceFromABI(abi, address, contractName)) |
|
|
|
self._view.instanceContainer.appendChild(self._deps.udappUI.renderInstanceFromABI(abi, address, contractName)) |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
} else { |
|
|
|