From f874259cebb14a5de2112ea3104d0df6f0641355 Mon Sep 17 00:00:00 2001 From: filip mertens Date: Wed, 5 Jun 2024 11:36:41 +0200 Subject: [PATCH] fix local plugin --- apps/remix-ide-e2e/src/tests/plugin_api.ts | 2 +- apps/vyper/src/app/utils/remix-client.tsx | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/apps/remix-ide-e2e/src/tests/plugin_api.ts b/apps/remix-ide-e2e/src/tests/plugin_api.ts index 0bc50240a3..b42f082b3e 100644 --- a/apps/remix-ide-e2e/src/tests/plugin_api.ts +++ b/apps/remix-ide-e2e/src/tests/plugin_api.ts @@ -11,7 +11,7 @@ const localPluginData: Profile & LocationProfile & ExternalProfile = { name: 'localPlugin', displayName: 'Local Plugin', canActivate: ['dgitApi', 'flattener', 'solidityUnitTesting', 'udapp', 'hardhat-provider'], - url: 'http://localhost:2020', + url: 'http://localhost:9999', location: 'sidePanel' } diff --git a/apps/vyper/src/app/utils/remix-client.tsx b/apps/vyper/src/app/utils/remix-client.tsx index df38ae3465..f599fb85e3 100644 --- a/apps/vyper/src/app/utils/remix-client.tsx +++ b/apps/vyper/src/app/utils/remix-client.tsx @@ -83,13 +83,19 @@ export class RemixClient extends PluginClient { try { // @ts-ignore this.call('notification', 'toast', 'cloning Snekmate Vyper repository...') - + const timestamp = new Date().getTime() await this.call( 'dgitApi', 'clone', - {url: 'https://github.com/pcaversaccio/snekmate', token: null, branch: 'main', workspaceName: 'snekmate'}, + {url: 'https://github.com/pcaversaccio/snekmate', token: null, branch: 'main', singleBranch: true, workspaceName: 'snekmate' + timestamp}, ) + await this.call('dgitApi', 'checkout', { + ref: 'v0.0.5', + force: true, + refresh: true + }) + this.call( // @ts-ignore