File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed
hardhat-graph-protocol/src/sdk Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -9,10 +9,11 @@ interface SecureAccountsOptions {
99 enabled ?: boolean
1010}
1111
12- // RPCs
12+ // Hardhat variables
1313const ARBITRUM_ONE_RPC = vars . get ( 'ARBITRUM_ONE_RPC' , 'https://arb1.arbitrum.io/rpc' )
1414const ARBITRUM_SEPOLIA_RPC = vars . get ( 'ARBITRUM_SEPOLIA_RPC' , 'https://sepolia-rollup.arbitrum.io/rpc' )
1515const LOCALHOST_RPC = vars . get ( 'LOCALHOST_RPC' , 'http://localhost:8545' )
16+ const LOCALHOST_CHAIN_ID = vars . get ( 'LOCALHOST_CHAIN_ID' , '31337' )
1617
1718export const solidityUserConfig : SolidityUserConfig = {
1819 version : '0.8.27' ,
@@ -54,7 +55,7 @@ export const networksUserConfig: BaseNetworksUserConfig = {
5455 } ,
5556 } ,
5657 localhost : {
57- chainId : 31337 ,
58+ chainId : parseInt ( LOCALHOST_CHAIN_ID ) ,
5859 url : LOCALHOST_RPC ,
5960 secureAccounts : {
6061 enabled : true ,
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ The following environment variables might be required:
1212| ` ARBITRUM_ONE_RPC ` | Arbitrum One RPC URL - defaults to ` https://arb1.arbitrum.io/rpc ` |
1313| ` ARBITRUM_SEPOLIA_RPC ` | Arbitrum Sepolia RPC URL - defaults to ` https://sepolia-rollup.arbitrum.io/rpc ` |
1414| ` LOCALHOST_RPC ` | Localhost RPC URL - defaults to ` http://localhost:8545 ` |
15+ | ` LOCALHOST_CHAIN_ID ` | Localhost chain ID - defaults to ` 31337 ` |
1516
1617You can set them using Hardhat:
1718
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ The following environment variables might be required:
1212| ` ARBITRUM_ONE_RPC ` | Arbitrum One RPC URL - defaults to ` https://arb1.arbitrum.io/rpc ` |
1313| ` ARBITRUM_SEPOLIA_RPC ` | Arbitrum Sepolia RPC URL - defaults to ` https://sepolia-rollup.arbitrum.io/rpc ` |
1414| ` LOCALHOST_RPC ` | Localhost RPC URL - defaults to ` http://localhost:8545 ` |
15-
15+ | ` LOCALHOST_CHAIN_ID ` | Localhost chain ID - defaults to ` 31337 ` |
1616You can set them using Hardhat:
1717
1818``` bash
You can’t perform that action at this time.
0 commit comments