Reset recorder after transactions recorded

pull/3094/head
ninabreznik 7 years ago committed by yann300
parent c234f40b05
commit 05d42a342b
  1. 6
      src/app/tabs/run-tab.js

@ -225,6 +225,7 @@ function makeRecorder (appAPI, appEvents, opts, self) {
modalDialogCustom.alert('Failed to create file ' + newFile)
} else {
appAPI.switchFile(newFile)
self._view.recorderCount.innerText = 0
}
})
}
@ -232,6 +233,11 @@ function makeRecorder (appAPI, appEvents, opts, self) {
}
runButton.onclick = () => {
/*
@TODO
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"
*/
var currentFile = appAPI.config.get('currentFile')
appAPI.fileProviderOf(currentFile).get(currentFile, (error, json) => {
if (error) {

Loading…
Cancel
Save