fix(simulator): fix simulator when there is no accounts

This commit is contained in:
Jonathan Rainville 2018-12-18 11:59:07 -05:00
parent 06553b5981
commit 34d5923d54
1 changed files with 1 additions and 1 deletions

View File

@ -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) {