File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -116,6 +116,14 @@ function getChainConfig(chain: keyof typeof chainIds): NetworkUserConfig {
116116 ) ;
117117 }
118118 break ;
119+ case 'mainnet' :
120+ jsonRpcUrl = process . env . RPC_URL || defaultRpcUrl ;
121+ if ( jsonRpcUrl === defaultRpcUrl && ! process . env . RPC_URL ) {
122+ console . warn (
123+ `WARN: RPC_URL environment variable not set for network '${ chain } '. Using default: ${ defaultRpcUrl } ` ,
124+ ) ;
125+ }
126+ break ;
119127 case 'localCoprocessor' :
120128 jsonRpcUrl = 'http://localhost:8746' ;
121129 break ;
@@ -180,6 +188,7 @@ const config: HardhatUserConfig = {
180188 staging : getChainConfig ( 'staging' ) ,
181189 zwsDev : getChainConfig ( 'zwsDev' ) ,
182190 sepolia : getChainConfig ( 'sepolia' ) ,
191+ mainnet : getChainConfig ( 'mainnet' ) ,
183192 localNative : getChainConfig ( 'localNative' ) ,
184193 localCoprocessor : getChainConfig ( 'localCoprocessor' ) ,
185194 localCoprocessorL1 : getChainConfig ( 'localCoprocessorL1' ) ,
You can’t perform that action at this time.
0 commit comments