Skip to content

Commit

Permalink
fix(code-generator): use isDev instead of checking env
Browse files Browse the repository at this point in the history
  • Loading branch information
jrainville authored and 0x-r4bbit committed Jan 14, 2019
1 parent 1e4eaa5 commit 540ff75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/modules/code_generator/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ class CodeGenerator {
web3Load = Templates.define_web3_simple({url: connection, done: 'done();'});
} else {
let connectionList = "[" + this.contractsConfig.dappConnection.map((x) => '"' + x + '"').join(',') + "]";
let isDev = (self.env === 'development');
let isDev = self.blockchainConfig.isDev;
web3Load = Templates.web3_connector({
autoEnable: this.contractsConfig.dappAutoEnable,
connectionList: connectionList,
Expand Down

0 comments on commit 540ff75

Please sign in to comment.