Skip to content

Commit

Permalink
Update web3.utils.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Corantin committed Apr 6, 2022
1 parent 4be9970 commit a1589d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-app/src/utils/web3.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export function getDefaultProvider() {
const { httpProvider, chainId: expectedChainId } = getNetwork();
let provider = ethOrWeb;
if (!provider || +provider.chainId !== +expectedChainId) {
provider = new Web3.providers.HttpProvider(`${httpProvider}/${env('INFURA_ID')}`);
provider = new Web3.providers.HttpProvider(`${httpProvider}/${env('INFURA_API_KEY')}`);
}

return provider && new ethersUtil.providers.Web3Provider(provider);
Expand Down

0 comments on commit a1589d2

Please sign in to comment.