diff --git a/ot-node.js b/ot-node.js index aa9552219..ecc313641 100644 --- a/ot-node.js +++ b/ot-node.js @@ -183,18 +183,15 @@ class OTNode { if ( process.env.NODE_ENV === 'development' || - process.env.NODE_ENV === 'test' || - process.env.NODE_ENV === 'testnet' + process.env.NODE_ENV === 'test' ) { const blockchainConfig = blockchainModuleManager.getModuleConfiguration(blockchain); - if (process.env.NODE_ENV !== 'testnet') { - execSync( - `npm run set-stake -- --rpcEndpoint=${blockchainConfig.rpcEndpoints[0]} --stake=${blockchainConfig.initialStakeAmount} --operationalWalletPrivateKey=${blockchainConfig.operationalWallets[0].privateKey} --managementWalletPrivateKey=${blockchainConfig.evmManagementWalletPrivateKey} --hubContractAddress=${blockchainConfig.hubContractAddress}`, - { stdio: 'inherit' }, - ); - await setTimeout(10000); - } + execSync( + `npm run set-stake -- --rpcEndpoint=${blockchainConfig.rpcEndpoints[0]} --stake=${blockchainConfig.initialStakeAmount} --operationalWalletPrivateKey=${blockchainConfig.operationalWallets[0].privateKey} --managementWalletPrivateKey=${blockchainConfig.evmManagementWalletPrivateKey} --hubContractAddress=${blockchainConfig.hubContractAddress}`, + { stdio: 'inherit' }, + ); + await setTimeout(10000); execSync( `npm run set-ask -- --rpcEndpoint=${blockchainConfig.rpcEndpoints[0]} --ask=${blockchainConfig.initialAskAmount} --privateKey=${blockchainConfig.operationalWallets[0].privateKey} --hubContractAddress=${blockchainConfig.hubContractAddress}`, { stdio: 'inherit' },