Merge pull request #785 from embark-framework/bug_fix/no-warning-dev

No accounts warning in development
This commit is contained in:
Iuri Matias 2018-09-05 18:22:09 -04:00 committed by GitHub
commit 48a3d70df2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -183,7 +183,8 @@ Config.prototype.loadBlockchainConfigFile = function() {
if (!configFilePath) {
this.blockchainConfig.default = true;
}
if(!this.blockchainConfig.account && !this.blockchainConfig.isDev) {
if (!this.blockchainConfig.account && !this.blockchainConfig.isDev &&
this.env !== 'development' && this.env !== 'test') {
this.logger.warn(
__('Account settings are needed for this chain.' +
' Please put a valid address and possibly a password in your blockchain config or use a dev chain.')