diff --git a/src/lib/modules/blockchain_process/simulator.js b/src/lib/modules/blockchain_process/simulator.js index 4e2430d80..395edda49 100644 --- a/src/lib/modules/blockchain_process/simulator.js +++ b/src/lib/modules/blockchain_process/simulator.js @@ -29,7 +29,7 @@ class Simulator { cmds.push("-l " + (options.gasLimit || this.blockchainConfig.targetGasLimit || 8000000)); // adding mnemonic only if it is defined in the blockchainConfig or options - const mnemonicAccount = this.blockchainConfig.accounts.find(acc => acc.mnemonic) || {}; + const mnemonicAccount = this.blockchainConfig.accounts ? this.blockchainConfig.accounts.find(acc => acc.mnemonic) : {}; const simulatorMnemonic = mnemonicAccount.mnemonic || options.simulatorMnemonic; if (simulatorMnemonic) {