show VM name

pull/5370/head
aniket-engg 8 months ago committed by Aniket
parent 67667f9446
commit 493d6ee5ed
  1. 1
      libs/remix-ui/run-tab/src/lib/actions/events.ts
  2. 2
      libs/remix-ui/run-tab/src/lib/components/instanceContainerUI.tsx

@ -97,7 +97,6 @@ export const setupEvents = (plugin: RunTab, dispatch: React.Dispatch<any>) => {
const { network } = await plugin.call('blockchain', 'getCurrentNetworkStatus')
const dirName = plugin.REACT_API.networkName === 'VM' ? plugin.REACT_API.selectExEnv : network.id
const isPinnedAvailable = await plugin.call('fileManager', 'exists', `.deploys/pinned-contracts/${dirName}`)
console.log('isPinnedAvailable==in events===>', isPinnedAvailable)
if (isPinnedAvailable) {
try {
const list = await plugin.call('fileManager', 'readdir', `.deploys/pinned-contracts/${dirName}`)

@ -65,7 +65,7 @@ export function InstanceContainerUI(props: InstanceContainerProps) {
<CustomTooltip placement="top-start" tooltipClasses="text-nowrap" tooltipId="deployAndRunPinnedContractsTooltip" tooltipText={<FormattedMessage id="udapp.tooltipTextPinnedContracts" />}>
<label className="udapp_deployedContracts">
<FormattedMessage id="udapp.savedContracts" />
<span style={{fontSize: '0.75rem'}}> (chain id: {chainId.current})</span>
<span style={{fontSize: '0.75rem'}}> { props.plugin.REACT_API.networkName === 'VM' ? `(VM: ${props.plugin.REACT_API.selectExEnv})` : `(chain id: ${chainId.current})` }</span>
</label>
</CustomTooltip>
</div>

Loading…
Cancel
Save