fix clearing targetfilename

auto_exec_v2
yann300 3 years ago
parent 8c58c8eeab
commit d7d31dd88d
  1. 2
      apps/remix-ide/src/app/tabs/intelligent-script-executor.ts

@ -46,10 +46,10 @@ export class IntelligentScriptExecutor extends Plugin {
this.on('compilerMetadata', 'artefactsUpdated', async (fileName, contract) => { this.on('compilerMetadata', 'artefactsUpdated', async (fileName, contract) => {
if (this.targetFileName === contract.file && contract.object && contract.object.devdoc['custom:dev-run-script']) { if (this.targetFileName === contract.file && contract.object && contract.object.devdoc['custom:dev-run-script']) {
this.targetFileName = null
const file = contract.object.devdoc['custom:dev-run-script'] const file = contract.object.devdoc['custom:dev-run-script']
if (file) this.runScript(file) if (file) this.runScript(file)
} }
this.targetFileName = null
}) })
} }

Loading…
Cancel
Save