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

Commit 9aefa9a

Browse files
committed
Cast env var to string for typescript
1 parent 1e4ced9 commit 9aefa9a

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

frontend/src/utils/DeveloperDaoConstants.ts

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,26 @@
1-
export const DEVELOPER_DAO_CONTRACT =
2-
process.env.NEXT_PUBLIC_DEVELOPER_DAO_CONTRACT;
3-
export const DEVELOPER_DAO_CONTRACT_NETWORK =
4-
process.env.NEXT_PUBLIC_DEVELOPER_DAO_CONTRACT_NETWORK;
5-
export const DEVELOPER_DAO_CONTRACT_NETWORK_PROVIDER =
6-
process.env.NEXT_PUBLIC_DEVELOPER_DAO_CONTRACT_NETWORK;
1+
export const DEVELOPER_DAO_CONTRACT = process.env
2+
.NEXT_PUBLIC_DEVELOPER_DAO_CONTRACT as string;
3+
export const DEVELOPER_DAO_CONTRACT_NETWORK = process.env
4+
.NEXT_PUBLIC_DEVELOPER_DAO_CONTRACT_NETWORK as string;
5+
export const DEVELOPER_DAO_CONTRACT_NETWORK_PROVIDER = process.env
6+
.NEXT_PUBLIC_DEVELOPER_DAO_CONTRACT_NETWORK as string;
77
export const NETWORK_ID = process.env.NEXT_PUBLIC_NETWORK_ID;
88
export const DEVELOPER_DAO_WEBSITE = 'https://www.developerdao.com';
9-
export const OPENSEA_DIRECT_LINK_PREFIX =
10-
process.env.NEXT_PUBLIC_OPENSEA_DIRECT_LINK_PREFIX;
11-
export const OPENSEA_COLLECTION_LINK =
12-
process.env.NEXT_PUBLIC_OPENSEA_COLLECTION_LINK;
13-
export const ETHER_SCAN_LINK_PREFIX =
14-
process.env.NEXT_PUBLIC_ETHER_SCAN_LINK_PREFIX;
9+
export const OPENSEA_DIRECT_LINK_PREFIX = process.env
10+
.NEXT_PUBLIC_OPENSEA_DIRECT_LINK_PREFIX as string;
11+
export const OPENSEA_COLLECTION_LINK = process.env
12+
.NEXT_PUBLIC_OPENSEA_COLLECTION_LINK as string;
13+
export const ETHER_SCAN_LINK_PREFIX = process.env
14+
.NEXT_PUBLIC_ETHER_SCAN_LINK_PREFIX as string;
1515

1616
export const SITE_URL = 'https://developerdao.com';
1717
export const ERROR_CODE_TX_REJECTED_BY_USER = 4001;
1818

1919
export const TOKEN_FINDER_URL = 'https://developerdao.vercel.app/';
20-
export const ETHERSCAN_TX_URL = process.env.NEXT_PUBLIC_ETHERSCAN_TX_URL;
20+
export const ETHERSCAN_TX_URL = process.env
21+
.NEXT_PUBLIC_ETHERSCAN_TX_URL as string;
2122

22-
export const INFURA_ID = process.env.NEXT_PUBLIC_INFURA_ID;
23+
export const INFURA_ID = process.env.NEXT_PUBLIC_INFURA_ID as string;
2324

2425
export const DEVELOPER_DAO_CONTRACT_ABI = [
2526
{ inputs: [], stateMutability: 'nonpayable', type: 'constructor' },

0 commit comments

Comments
 (0)