Skip to content

Commit c27d4b9

Browse files
committed
Refactor Hardhat configuration to standardize network names and update Arbiscan API key handling
1 parent 674425e commit c27d4b9

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

packages/smart-contract/hardhat.config.ts

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ const config: HardhatUserConfig = {
3434
accounts: privateKey ? [privateKey] : [],
3535
},
3636
// Add Fuji as a network
37-
avalancheFujiTestnet: {
37+
avalancheFuji: {
3838
url: env.RPC_URL || 'https://api.avax-test.network/ext/bc/C/rpc',
3939
accounts: privateKey ? [privateKey] : [],
4040
...fujiBaseConfig,
4141
},
4242
// Add Arbitrum Sepolia as a network
43-
'arbitrum-sepolia': {
43+
arbitrumSepolia: {
4444
url: env.RPC_URL || 'https://sepolia-rollup.arbitrum.io/rpc',
4545
accounts: privateKey ? [privateKey] : [],
4646
...arbitrumSepoliaBaseConfig,
@@ -59,8 +59,8 @@ const config: HardhatUserConfig = {
5959
etherscan: {
6060
apiKey: {
6161
bellecour: 'nothing', // a non-empty string is needed by the plugin.
62-
avalancheFujiTestnet: 'nothing', // a non-empty string is needed by the plugin.
63-
arbitrumSepolia: env.ARBISCAN_API_KEY,
62+
avalancheFuji: 'nothing', // a non-empty string is needed by the plugin.
63+
arbitrumSepolia: env.ARBISCAN_API_KEY || '',
6464
},
6565
customChains: [
6666
{
@@ -73,6 +73,14 @@ const config: HardhatUserConfig = {
7373
},
7474
],
7575
},
76+
// Create2 deployments
77+
ignition: {
78+
strategyConfig: {
79+
create2: {
80+
salt: '0x0000000000000000000000000000000000000000000000000000000000000000',
81+
},
82+
},
83+
},
7684
//compiler version
7785
solidity: {
7886
version: '0.8.29',

0 commit comments

Comments
 (0)