Skip to content

Commit

Permalink
fix(simulator): fix simulator when there is no accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
jrainville committed Dec 19, 2018
1 parent 06553b5 commit 34d5923
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/modules/blockchain_process/simulator.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 34d5923

Please sign in to comment.