fix typo; default environment to development

This commit is contained in:
Iuri Matias 2018-05-28 13:53:10 -04:00
parent 6fe3064edd
commit 1eee68e901
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ class CodeGenerator {
this.storageConfig = options.storageConfig || {};
this.communicationConfig = options.communicationConfig || {};
this.namesystemConfig = options.namesystemConfig || {};
this.env = options.env || '';
this.env = options.env || 'development';
// TODO: this should also be removed and use events instead
this.contractsManager = options.contractsManager;
this.plugins = options.plugins;

View File

@ -27,7 +27,7 @@ __reduce(<%- connectionList %>,function(prev, value, next) {
__getAccounts(function(err, accounts) {
web3.eth.defaultAccount = accounts[0];
<% if (warnAboutMetamask) { %>
if (web3.eth.currentProvider.isMetamask === true) {
if (web3.eth.currentProvider.isMetaMask) {
console.log("Note: Embark has detected you are in the development environment and using Metamask, please make it's connecting to your local node");
}
<% } %>