We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 750522f + d0c1ea4 commit ce3ec16Copy full SHA for ce3ec16
packages/data-edge/hardhat.config.ts
@@ -61,6 +61,10 @@ function getAccountMnemonic() {
61
return process.env.MNEMONIC || ''
62
}
63
64
+function getAccountIndex() {
65
+ return process.env.ACCOUNT_INDEX ? parseInt(process.env.ACCOUNT_INDEX) : 0
66
+}
67
+
68
function getDefaultProviderURL(network: string) {
69
return `https://${network}.infura.io/v3/${process.env.INFURA_KEY}`
70
@@ -74,6 +78,8 @@ function setupDefaultNetworkProviders(buidlerConfig) {
74
78
gasPrice: netConfig.gasPrice || 'auto',
75
79
accounts: {
76
80
mnemonic: getAccountMnemonic(),
81
+ path: "m/44'/60'/0'/0",
82
+ initialIndex: getAccountIndex(),
77
83
},
84
85
0 commit comments