From 269df10a490253b1ad23ab5c4d3e960f9760400f Mon Sep 17 00:00:00 2001 From: yann300 Date: Wed, 28 Sep 2022 13:10:07 +0200 Subject: [PATCH] shift processing the artefact --- libs/remixd/src/services/foundryClient.ts | 2 +- libs/remixd/src/services/hardhatClient.ts | 2 +- libs/remixd/src/services/truffleClient.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/remixd/src/services/foundryClient.ts b/libs/remixd/src/services/foundryClient.ts index 060f759ae0..c8494a2788 100644 --- a/libs/remixd/src/services/foundryClient.ts +++ b/libs/remixd/src/services/foundryClient.ts @@ -90,7 +90,7 @@ export class FoundryClient extends PluginClient { this.watcher.on('change', async (f: string) => this.processArtifact()) this.watcher.on('add', async (f: string) => this.processArtifact()) // process the artifact on activation - this.processArtifact() + setTimeout(() => this.processArtifact(), 1000) } catch (e) { console.log(e) } diff --git a/libs/remixd/src/services/hardhatClient.ts b/libs/remixd/src/services/hardhatClient.ts index dd55305a97..b4496024c1 100644 --- a/libs/remixd/src/services/hardhatClient.ts +++ b/libs/remixd/src/services/hardhatClient.ts @@ -94,7 +94,7 @@ export class HardhatClient extends PluginClient { this.watcher.on('change', () => this.processArtifact()) this.watcher.on('add', () => this.processArtifact()) // process the artifact on activation - this.processArtifact() + setTimeout(() => this.processArtifact(), 1000) } catch (e) { console.log(e) } diff --git a/libs/remixd/src/services/truffleClient.ts b/libs/remixd/src/services/truffleClient.ts index 8ba93cdb75..2774c72896 100644 --- a/libs/remixd/src/services/truffleClient.ts +++ b/libs/remixd/src/services/truffleClient.ts @@ -92,7 +92,7 @@ export class TruffleClient extends PluginClient { this.watcher.on('change', async (f: string) => this.processArtifact()) this.watcher.on('add', async (f: string) => this.processArtifact()) // process the artifact on activation - this.processArtifact() + setTimeout(() => this.processArtifact(), 1000) } catch (e) { console.log(e) }