mirror of https://github.com/embarklabs/embark.git
fix(simulator): fix simulator when there is no accounts
This commit is contained in:
parent
06553b5981
commit
34d5923d54
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue