We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72726b7 commit d0c1ea4Copy full SHA for d0c1ea4
packages/data-edge/hardhat.config.ts
@@ -61,10 +61,8 @@ function getAccountMnemonic() {
61
return process.env.MNEMONIC || ''
62
}
63
64
-function getAccountPath() {
65
- const index = process.env.ACCOUNT_INDEX ? parseInt(process.env.ACCOUNT_INDEX) : 0
66
- const hdPath = `m/44'/60'/0'/0/${index}`
67
- return hdPath
+function getAccountIndex() {
+ return process.env.ACCOUNT_INDEX ? parseInt(process.env.ACCOUNT_INDEX) : 0
68
69
70
function getDefaultProviderURL(network: string) {
@@ -80,7 +78,8 @@ function setupDefaultNetworkProviders(buidlerConfig) {
80
78
gasPrice: netConfig.gasPrice || 'auto',
81
79
accounts: {
82
mnemonic: getAccountMnemonic(),
83
- path: getAccountPath(),
+ path: "m/44'/60'/0'/0",
+ initialIndex: getAccountIndex(),
84
},
85
86
0 commit comments