Skip to content

Commit

Permalink
fix: fix polygon network arg
Browse files Browse the repository at this point in the history
  • Loading branch information
jdville03 committed Apr 4, 2024
1 parent 5e34b44 commit b70212c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/contract.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
);

Expand Down

0 comments on commit b70212c

Please sign in to comment.