fix compile and run

yann300-patch-52
Aniket-Engg 2 years ago committed by Aniket
parent 4c7780f0a2
commit b7c9ad81c0
  1. 2
      apps/remix-ide/src/app/tabs/compile-and-run.ts

@ -73,8 +73,8 @@ export class CompileAndRun extends Plugin {
this.on('compilerMetadata', 'artefactsUpdated', async (fileName, contract) => { this.on('compilerMetadata', 'artefactsUpdated', async (fileName, contract) => {
if (this.targetFileName === contract.file) { if (this.targetFileName === contract.file) {
this.targetFileName = null
if (contract.object && contract.object.devdoc['custom:dev-run-script']) { if (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) { if (file) {
this.runScript(file, true) this.runScript(file, true)

Loading…
Cancel
Save