Skip to content
This repository was archived by the owner on Dec 26, 2023. It is now read-only.

Commit b6d96b7

Browse files
committed
Use DEVELOPER_DAO_CONTRACT_NETWORK_PROVIDER in useDevNFTSupply hook
1 parent a26536d commit b6d96b7

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

frontend/src/hooks/useDevNFTSupply.ts

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ import {
66
InfuraProvider,
77
} from '@ethersproject/providers';
88

9-
import { DEVELOPER_DAO_CONTRACT } from '../utils/DeveloperDaoConstants';
9+
import {
10+
DEVELOPER_DAO_CONTRACT,
11+
DEVELOPER_DAO_CONTRACT_NETWORK_PROVIDER,
12+
} from '../utils/DeveloperDaoConstants';
1013
import { Ddao__factory } from '../../types/ethers-contracts/factories/Ddao__factory';
1114

1215
// TokenIDs start at 1. Tokens 1-7777 (supply of 7777) are open to mint by anyone. 7778-8000 are locked to mint by contract owner
@@ -24,8 +27,16 @@ export function useDevNFTSupply() {
2427
const contract = Ddao__factory.connect(
2528
DEVELOPER_DAO_CONTRACT,
2629
new FallbackProvider([
27-
{ provider: new InfuraProvider() },
28-
{ provider: new AlchemyProvider() },
30+
{
31+
provider: new InfuraProvider(
32+
DEVELOPER_DAO_CONTRACT_NETWORK_PROVIDER,
33+
),
34+
},
35+
{
36+
provider: new AlchemyProvider(
37+
DEVELOPER_DAO_CONTRACT_NETWORK_PROVIDER,
38+
),
39+
},
2940
]),
3041
);
3142

0 commit comments

Comments
 (0)