From de22b61106ec679e8f0f32affe29cf0b3a2ddc05 Mon Sep 17 00:00:00 2001 From: yann300 Date: Wed, 28 Sep 2022 09:33:49 +0200 Subject: [PATCH] truffle process artifact on activation --- libs/remixd/src/services/truffleClient.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/remixd/src/services/truffleClient.ts b/libs/remixd/src/services/truffleClient.ts index f5df4613d7..2921b9c5b3 100644 --- a/libs/remixd/src/services/truffleClient.ts +++ b/libs/remixd/src/services/truffleClient.ts @@ -88,6 +88,8 @@ export class TruffleClient extends PluginClient { } this.watcher.on('change', async (f: string) => processArtifact()) this.watcher.on('add', async (f: string) => processArtifact()) + // process the artifact on activation + processArtifact() } catch (e) { console.log(e) }