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 {
9
9
enabled ?: boolean
10
10
}
11
11
12
- // RPCs
12
+ // Hardhat variables
13
13
const ARBITRUM_ONE_RPC = vars . get ( 'ARBITRUM_ONE_RPC' , 'https://arb1.arbitrum.io/rpc' )
14
14
const ARBITRUM_SEPOLIA_RPC = vars . get ( 'ARBITRUM_SEPOLIA_RPC' , 'https://sepolia-rollup.arbitrum.io/rpc' )
15
15
const LOCALHOST_RPC = vars . get ( 'LOCALHOST_RPC' , 'http://localhost:8545' )
16
+ const LOCALHOST_CHAIN_ID = vars . get ( 'LOCALHOST_CHAIN_ID' , '31337' )
16
17
17
18
export const solidityUserConfig : SolidityUserConfig = {
18
19
version : '0.8.27' ,
@@ -54,7 +55,7 @@ export const networksUserConfig: BaseNetworksUserConfig = {
54
55
} ,
55
56
} ,
56
57
localhost : {
57
- chainId : 31337 ,
58
+ chainId : parseInt ( LOCALHOST_CHAIN_ID ) ,
58
59
url : LOCALHOST_RPC ,
59
60
secureAccounts : {
60
61
enabled : true ,
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ The following environment variables might be required:
12
12
| ` ARBITRUM_ONE_RPC ` | Arbitrum One RPC URL - defaults to ` https://arb1.arbitrum.io/rpc ` |
13
13
| ` ARBITRUM_SEPOLIA_RPC ` | Arbitrum Sepolia RPC URL - defaults to ` https://sepolia-rollup.arbitrum.io/rpc ` |
14
14
| ` LOCALHOST_RPC ` | Localhost RPC URL - defaults to ` http://localhost:8545 ` |
15
+ | ` LOCALHOST_CHAIN_ID ` | Localhost chain ID - defaults to ` 31337 ` |
15
16
16
17
You can set them using Hardhat:
17
18
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ The following environment variables might be required:
12
12
| ` ARBITRUM_ONE_RPC ` | Arbitrum One RPC URL - defaults to ` https://arb1.arbitrum.io/rpc ` |
13
13
| ` ARBITRUM_SEPOLIA_RPC ` | Arbitrum Sepolia RPC URL - defaults to ` https://sepolia-rollup.arbitrum.io/rpc ` |
14
14
| ` LOCALHOST_RPC ` | Localhost RPC URL - defaults to ` http://localhost:8545 ` |
15
-
15
+ | ` LOCALHOST_CHAIN_ID ` | Localhost chain ID - defaults to ` 31337 ` |
16
16
You can set them using Hardhat:
17
17
18
18
``` bash
You can’t perform that action at this time.
0 commit comments