Update prepareValidatorsDapp.js
This commit is contained in:
parent
23a85076df
commit
c95169894f
File diff suppressed because it is too large
Load Diff
|
@ -14,7 +14,7 @@
|
|||
"password-generator": "^2.2.0",
|
||||
"path": "^0.12.7",
|
||||
"poa-dapps-keys-generation": "github:poanetwork/poa-dapps-keys-generation#cae6121305bf9d67ce15d7b46f2886552941cee2",
|
||||
"poa-dapps-validators": "github:poanetwork/poa-dapps-validators#a1c023202d28f66d3331d1997c1879d9fadbaf88",
|
||||
"poa-dapps-validators": "github:poanetwork/poa-dapps-validators#67fc237996b5163d43b0609f9e77134df21c4d57",
|
||||
"poa-dapps-voting": "github:poanetwork/poa-dapps-voting#1cecd5d169078e56df6613153abf86d1bd1e8211",
|
||||
"selenium-webdriver": "3.6.0",
|
||||
"toml": "^2.3.3",
|
||||
|
|
|
@ -52,7 +52,7 @@ function main() {
|
|||
const dappGetWeb3 = `${constants.pathToValidatorsDAppRepo}/src/utils/getWeb3.js`;
|
||||
let dappGetWeb3Content = fs.readFileSync(dappGetWeb3, 'utf8');
|
||||
function replaceDefaultNetId(network) {
|
||||
return `const defaultNetId = helpers.netIdByName(constants.branches.${network})`
|
||||
return `const defaultNetId = helpers.netIdByBranch(constants.branches.${network})`
|
||||
}
|
||||
dappGetWeb3Content = dappGetWeb3Content.replace(replaceDefaultNetId('CORE'), replaceDefaultNetId('SOKOL'));
|
||||
fs.writeFileSync(dappGetWeb3, dappGetWeb3Content);
|
||||
|
|
Loading…
Reference in New Issue