add address in path

pull/2450/head^2
Aniket-Engg 2 years ago committed by Aniket
parent cbd816197e
commit b5d66fae32
  1. 4
      libs/remix-ui/workspace/src/lib/actions/index.ts

@ -79,8 +79,8 @@ export const initWorkspace = (filePanelPlugin) => async (reducerDispatch: React.
plugin.call('notification', 'toast', `Looking for contract address ${contractAddress} on different networks`)
let found = false
for (const network of networks) {
const target = `/${network.name}`
try{
const target = `/${network.name}/${contractAddress}`
try {
data = await fetchContractFromEtherscan(plugin, network, contractAddress, target, etherscanKey)
} catch (error) {
if ((error.message.startsWith('contract not verified on Etherscan') || error.message.startsWith('unable to retrieve contract data')) && network.id !== 5)

Loading…
Cancel
Save