File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -61,10 +61,8 @@ function getAccountMnemonic() {
61
61
return process . env . MNEMONIC || ''
62
62
}
63
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
64
+ function getAccountIndex ( ) {
65
+ return process . env . ACCOUNT_INDEX ? parseInt ( process . env . ACCOUNT_INDEX ) : 0
68
66
}
69
67
70
68
function getDefaultProviderURL ( network : string ) {
@@ -80,7 +78,8 @@ function setupDefaultNetworkProviders(buidlerConfig) {
80
78
gasPrice : netConfig . gasPrice || 'auto' ,
81
79
accounts : {
82
80
mnemonic : getAccountMnemonic ( ) ,
83
- path : getAccountPath ( ) ,
81
+ path : "m/44'/60'/0'/0" ,
82
+ initialIndex : getAccountIndex ( ) ,
84
83
} ,
85
84
}
86
85
}
You can’t perform that action at this time.
0 commit comments