From b7c9ad81c0ba240fb3dfb54228a68e0baad4eb1d Mon Sep 17 00:00:00 2001 From: Aniket-Engg Date: Wed, 3 May 2023 20:54:31 +0530 Subject: [PATCH] fix compile and run --- apps/remix-ide/src/app/tabs/compile-and-run.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/remix-ide/src/app/tabs/compile-and-run.ts b/apps/remix-ide/src/app/tabs/compile-and-run.ts index bfe6cda981..2b3c169896 100644 --- a/apps/remix-ide/src/app/tabs/compile-and-run.ts +++ b/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) => { if (this.targetFileName === contract.file) { + this.targetFileName = null if (contract.object && contract.object.devdoc['custom:dev-run-script']) { - this.targetFileName = null const file = contract.object.devdoc['custom:dev-run-script'] if (file) { this.runScript(file, true)