|
|
@ -58,7 +58,7 @@ import { ScenarioPrompt } from './components/scenario' |
|
|
|
import { setIpfsCheckedState, setRemixDActivated } from './actions/payload' |
|
|
|
import { setIpfsCheckedState, setRemixDActivated } from './actions/payload' |
|
|
|
import { ChainCompatibleInfo, getCompatibleChain, getCompatibleChains, HardFork, isChainCompatible, isChainCompatibleWithAnyFork } from './actions/evmmap' |
|
|
|
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) { |
|
|
|
export function RunTabUI(props: RunTabProps) { |
|
|
|
const { plugin } = props |
|
|
|
const { plugin } = props |
|
|
@ -138,8 +138,7 @@ export function RunTabUI(props: RunTabProps) { |
|
|
|
const IsCompatible = isChainCompatible(ideDefault, targetChainId) |
|
|
|
const IsCompatible = isChainCompatible(ideDefault, targetChainId) |
|
|
|
const chain = await returnCompatibleChain(ideDefault, targetChainId) |
|
|
|
const chain = await returnCompatibleChain(ideDefault, targetChainId) |
|
|
|
if (chain === undefined) { |
|
|
|
if (chain === undefined) { |
|
|
|
plugin.call('terminal', 'log', { type: 'log', value: 'No compatible chain found for the selected EVM version.' }) |
|
|
|
return 'Not Found' |
|
|
|
return 'Failed' |
|
|
|
|
|
|
|
} else { |
|
|
|
} else { |
|
|
|
if (!IsCompatible) { |
|
|
|
if (!IsCompatible) { |
|
|
|
//show modal
|
|
|
|
//show modal
|
|
|
|