Skip to content

Commit 1db1409

Browse files
ioedeveloperAniket-Engg
authored andcommitted
Get provider name for vm
1 parent 8cabf39 commit 1db1409

File tree

1 file changed

+1
-1
lines changed
  • libs/remix-ui/run-tab/src/lib/actions

1 file changed

+1
-1
lines changed

libs/remix-ui/run-tab/src/lib/actions/deploy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ export const getNetworkProxyAddresses = async (plugin: RunTab, dispatch: React.D
399399
export const isValidContractUpgrade = async (plugin: RunTab, proxyAddress: string, newContractName: string, solcInput: SolcInput, solcOutput: SolcOutput, solcVersion: string) => {
400400
// build current contract first to get artefacts.
401401
const network = plugin.blockchain.networkStatus.network
402-
const identifier = network.name === 'custom' ? network.name + '-' + network.id : network.name
402+
const identifier = network.name === 'custom' ? network.name + '-' + network.id : network.name === 'VM' ? plugin.blockchain.getProvider() : network.name
403403
const networkDeploymentsExists = await plugin.call('fileManager', 'exists', `.deploys/upgradeable-contracts/${identifier}/UUPS.json`)
404404

405405
if (networkDeploymentsExists) {

0 commit comments

Comments
 (0)