diff --git a/libs/remix-ui/run-tab/src/lib/components/instanceContainerUI.tsx b/libs/remix-ui/run-tab/src/lib/components/instanceContainerUI.tsx index 7fcc0b4970..7ba6655a86 100644 --- a/libs/remix-ui/run-tab/src/lib/components/instanceContainerUI.tsx +++ b/libs/remix-ui/run-tab/src/lib/components/instanceContainerUI.tsx @@ -7,14 +7,10 @@ import { UniversalDappUI } from './universalDappUI' export function InstanceContainerUI(props: InstanceContainerProps) { const { instanceList } = props.instances - const enableSave = useRef(false) const chainId = useRef() useEffect(() => { const fetchSavedContracts = async () => { - if (props.plugin.REACT_API.selectExEnv && props.plugin.REACT_API.selectExEnv.startsWith('vm-')) enableSave.current = false - else enableSave.current = true - if (enableSave.current) { const { network } = await props.plugin.call('blockchain', 'getCurrentNetworkStatus') chainId.current = network.id // Move contract saved in localstorage to Remix FE @@ -54,7 +50,6 @@ export function InstanceContainerUI(props: InstanceContainerProps) { console.log(err) } } - } } fetchSavedContracts() }, [props.plugin.REACT_API.selectExEnv, props.plugin.REACT_API.networkName]) @@ -65,7 +60,6 @@ export function InstanceContainerUI(props: InstanceContainerProps) { return (