From b70212c54f3267847d9aa40de19a694e69b53aee Mon Sep 17 00:00:00 2001 From: jdville03 Date: Thu, 4 Apr 2024 12:21:42 -0700 Subject: [PATCH] fix: fix polygon network arg --- src/utils/contract.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 );