We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3eb16c8 commit 72726b7Copy full SHA for 72726b7
packages/data-edge/hardhat.config.ts
@@ -61,6 +61,12 @@ 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
68
+}
69
+
70
function getDefaultProviderURL(network: string) {
71
return `https://${network}.infura.io/v3/${process.env.INFURA_KEY}`
72
@@ -74,6 +80,7 @@ function setupDefaultNetworkProviders(buidlerConfig) {
74
80
gasPrice: netConfig.gasPrice || 'auto',
75
81
accounts: {
76
82
mnemonic: getAccountMnemonic(),
83
+ path: getAccountPath(),
77
84
},
78
85
79
86
0 commit comments