From c3889b63165b49c2400220ad22eca5450167dc67 Mon Sep 17 00:00:00 2001 From: Danilo Tuler Date: Fri, 11 Aug 2023 12:33:49 -0300 Subject: [PATCH] feat(contracts): allow RPC_URL during deployment --- onchain/rollups/hardhat.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/onchain/rollups/hardhat.config.ts b/onchain/rollups/hardhat.config.ts index 90ea4d7a..219fc58e 100644 --- a/onchain/rollups/hardhat.config.ts +++ b/onchain/rollups/hardhat.config.ts @@ -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) {