Skip to content

Commit

Permalink
fix MAINNET_RPC_URL empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff-CCH committed Jan 22, 2024
1 parent c20e36d commit 63a6853
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ const config: HardhatUserConfig = {
initialIndex: 0,
},
forking: {
url: process.env.HTTP_RPC_URL ?? process.env.MAINNET_RPC_URL ?? 'https://eth.llamarpc.com',
url:
process.env.HTTP_RPC_URL ??
(process.env.MAINNET_RPC_URL ? process.env.MAINNET_RPC_URL! : 'https://eth.llamarpc.com'),
blockNumber: process.env.BLOCK_NUMBER ? parseInt(process.env.BLOCK_NUMBER) : undefined,
},
},
Expand Down

0 comments on commit 63a6853

Please sign in to comment.