Skip to content

Commit a16942c

Browse files
committed
Refactor account configuration for Avalanche Fuji and Arbitrum Sepolia networks to use privateKey
1 parent c9edf23 commit a16942c

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

packages/smart-contract/hardhat.config.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,13 @@ const config: HardhatUserConfig = {
3636
// Add Fuji as a network
3737
avalancheFujiTestnet: {
3838
url: env.RPC_URL || 'https://api.avax-test.network/ext/bc/C/rpc',
39-
accounts: {
40-
mnemonic: env.MNEMONIC || HARDHAT_NETWORK_MNEMONIC,
41-
},
39+
accounts: privateKey ? [privateKey] : [],
4240
...fujiBaseConfig,
4341
},
4442
// Add Arbitrum Sepolia as a network
4543
'arbitrum-sepolia': {
4644
url: env.RPC_URL || 'https://sepolia-rollup.arbitrum.io/rpc',
47-
accounts: {
48-
mnemonic: env.MNEMONIC || HARDHAT_NETWORK_MNEMONIC,
49-
},
45+
accounts: privateKey ? [privateKey] : [],
5046
...arbitrumSepoliaBaseConfig,
5147
},
5248
// poco-chain native config

0 commit comments

Comments
 (0)