Skip to content
This repository has been archived by the owner on Mar 12, 2024. It is now read-only.

Commit

Permalink
feat(contracts): allow RPC_URL during deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
tuler committed Aug 11, 2023
1 parent 663b2dc commit c3889b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion onchain/rollups/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const ppath = (packageName: string, pathname: string) => {
};

const networkConfig = (chain: Chain): HttpNetworkUserConfig => {
let url = chain.rpcUrls.public.http.at(0);
let url = process.env.RPC_URL || chain.rpcUrls.public.http.at(0);

// support for infura and alchemy URLs through env variables
if (process.env.INFURA_ID && chain.rpcUrls.infura?.http) {
Expand Down

0 comments on commit c3889b6

Please sign in to comment.