diff --git a/apps/remix-ide/src/blockchain/blockchain.tsx b/apps/remix-ide/src/blockchain/blockchain.tsx index 31c692abe17..74fbe5314e4 100644 --- a/apps/remix-ide/src/blockchain/blockchain.tsx +++ b/apps/remix-ide/src/blockchain/blockchain.tsx @@ -93,11 +93,10 @@ export class Blockchain extends Plugin { (_) => this.executionContext.currentblockGasLimit() ) this.txRunner = new TxRunner(web3Runner, {}) - this.networkcallid = 0 - this.networkStatus = { network: { name: ' - ', id: ' - ' } } this.registeredPluginEvents = [] this.defaultPinnedProviders = ['vm-cancun', 'vm-mainnet-fork', 'walletconnect', 'injected-MetaMask', 'basic-http-provider', 'hardhat-provider', 'foundry-provider'] + this.networkStatus = { network: { name: this.defaultPinnedProviders[0], id: ' - ' } } this.pinnedProviders = [] this.setupEvents() this.setupProviders() @@ -379,7 +378,7 @@ export class Blockchain extends Plugin { async saveDeployedContractStorageLayout(contractObject, proxyAddress, networkInfo) { const { contractName, implementationAddress } = contractObject - const networkName = networkInfo.name === 'custom' ? networkInfo.name + '-' + networkInfo.id : networkInfo.name + const networkName = networkInfo.name === 'custom' ? networkInfo.name + '-' + networkInfo.id : networkInfo.name === 'VM' ? networkInfo.name.toLowerCase() + '-' + this.getCurrentFork() : networkInfo.name const hasPreviousDeploys = await this.call('fileManager', 'exists', `.deploys/upgradeable-contracts/${networkName}/UUPS.json`) // TODO: make deploys folder read only. if (hasPreviousDeploys) { diff --git a/libs/remix-ui/run-tab/src/lib/actions/events.ts b/libs/remix-ui/run-tab/src/lib/actions/events.ts index 2e06963e11a..89e949ccab6 100644 --- a/libs/remix-ui/run-tab/src/lib/actions/events.ts +++ b/libs/remix-ui/run-tab/src/lib/actions/events.ts @@ -39,7 +39,7 @@ export const setupEvents = (plugin: RunTab) => { plugin.blockchain.event.register('contextChanged', async (context) => { dispatch(resetProxyDeployments()) - if (!context.startsWith('vm')) getNetworkProxyAddresses(plugin, dispatch) + getNetworkProxyAddresses(plugin, dispatch) if (context !== 'walletconnect') { (await plugin.call('manager', 'isActive', 'walletconnect')) && plugin.call('manager', 'deactivatePlugin', 'walletconnect') }