From 2f93105f367f3fc3d73335c466cd9a1d991573a1 Mon Sep 17 00:00:00 2001 From: Joseph Izang Date: Thu, 7 Nov 2024 22:52:24 +0100 Subject: [PATCH] fix base case. --- libs/remix-ui/run-tab/src/lib/components/contractGUI.tsx | 4 ++-- libs/remix-ui/run-tab/src/lib/run-tab.tsx | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/libs/remix-ui/run-tab/src/lib/components/contractGUI.tsx b/libs/remix-ui/run-tab/src/lib/components/contractGUI.tsx index 6f97c170a3..650c53c203 100644 --- a/libs/remix-ui/run-tab/src/lib/components/contractGUI.tsx +++ b/libs/remix-ui/run-tab/src/lib/components/contractGUI.tsx @@ -233,8 +233,8 @@ export function ContractGUI(props: ContractGUIProps) { await handleDeploy() } else { const status = await props.getCompilerDetails() - if (status === 'Failed') { - props.plugin.call('terminal', 'log', { type: 'log', value: 'Consider opening an issue to update our internal store with your desired chainId.' }) + if (status === 'Not Found') { + await handleDeploy() return } const tabState = props.runTabState diff --git a/libs/remix-ui/run-tab/src/lib/run-tab.tsx b/libs/remix-ui/run-tab/src/lib/run-tab.tsx index 772aef8f9c..c6eb716af6 100644 --- a/libs/remix-ui/run-tab/src/lib/run-tab.tsx +++ b/libs/remix-ui/run-tab/src/lib/run-tab.tsx @@ -58,7 +58,7 @@ import { ScenarioPrompt } from './components/scenario' import { setIpfsCheckedState, setRemixDActivated } from './actions/payload' import { ChainCompatibleInfo, getCompatibleChain, getCompatibleChains, HardFork, isChainCompatible, isChainCompatibleWithAnyFork } from './actions/evmmap' -export type CheckStatus = 'Passed' | 'Failed' +export type CheckStatus = 'Passed' | 'Failed' | 'Not Found' export function RunTabUI(props: RunTabProps) { const { plugin } = props @@ -138,8 +138,7 @@ export function RunTabUI(props: RunTabProps) { const IsCompatible = isChainCompatible(ideDefault, targetChainId) const chain = await returnCompatibleChain(ideDefault, targetChainId) if (chain === undefined) { - plugin.call('terminal', 'log', { type: 'log', value: 'No compatible chain found for the selected EVM version.' }) - return 'Failed' + return 'Not Found' } else { if (!IsCompatible) { //show modal