From 989f1da70a0b3373cd487841f39127671d3097a5 Mon Sep 17 00:00:00 2001 From: bunsenstraat Date: Thu, 9 Jan 2025 23:43:11 +0100 Subject: [PATCH] activate sol testing when starting learneth --- apps/learneth/src/redux/models/remixide.ts | 4 +++- apps/remix-ide/src/remixAppManager.js | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/learneth/src/redux/models/remixide.ts b/apps/learneth/src/redux/models/remixide.ts index f4c279ce31d..89a406d84a7 100644 --- a/apps/learneth/src/redux/models/remixide.ts +++ b/apps/learneth/src/redux/models/remixide.ts @@ -33,7 +33,9 @@ const Model: ModelType = { }, }) - yield remixClient.onload() + yield remixClient.onload(() => { + remixClient.call('manager', 'activatePlugin', 'solidityUnitTesting') + }) toast.dismiss() diff --git a/apps/remix-ide/src/remixAppManager.js b/apps/remix-ide/src/remixAppManager.js index ec257903868..04179529601 100644 --- a/apps/remix-ide/src/remixAppManager.js +++ b/apps/remix-ide/src/remixAppManager.js @@ -149,7 +149,8 @@ export function isNative(name) { 'templateSelection', 'walletconnect', 'contract-verification', - 'popupPanel' + 'popupPanel', + 'LearnEth', ] return nativePlugins.includes(name) || requiredModules.includes(name) || isInjectedProvider(name) || isVM(name) || isScriptRunner(name) }