diff --git a/src/utils/contract.js b/src/utils/contract.js index 2580d24..f349b0f 100644 --- a/src/utils/contract.js +++ b/src/utils/contract.js @@ -28,12 +28,12 @@ const getProvider = (network) => { case "mainnet": { if (configs.alchemyApiKey) return new ethers.providers.AlchemyProvider( - network, + network === 'polygon' ? 'matic' : network, configs.alchemyApiKey ); if (configs.infuraApiKey) return new ethers.providers.InfuraProvider( - network, + network === 'polygon' ? 'matic' : network, configs.infuraApiKey );