diff --git a/lib/contracts/provider.js b/lib/contracts/provider.js index 8b621262c..04be75016 100644 --- a/lib/contracts/provider.js +++ b/lib/contracts/provider.js @@ -12,6 +12,7 @@ class Provider { this.accountsConfig = options.accountsConfig; this.web3Endpoint = options.web3Endpoint; this.logger = options.logger; + this.isDev = options.isDev; this.engine = new ProviderEngine(); this.asyncMethods = {}; } @@ -38,6 +39,9 @@ class Provider { if (!self.accounts.length) { return next(NO_ACCOUNTS); } + if (!self.isDev) { + return next(); + } async.each(self.accounts, (account, eachCb) => { fundAccount(self.web3, account.address, eachCb); }, next); diff --git a/lib/core/engine.js b/lib/core/engine.js index c59e95665..5885d27ea 100644 --- a/lib/core/engine.js +++ b/lib/core/engine.js @@ -40,7 +40,7 @@ class Engine { }, 0); if (this.interceptLogs || this.interceptLogs === undefined) { - this.doInterceptLogs(); + // this.doInterceptLogs(); } } @@ -284,6 +284,7 @@ class Engine { web3: this.web3, accountsConfig: this.config.contractsConfig.deployment.accounts, logger: this.logger, + isDev: this.isDev, web3Endpoint }; provider = new Provider(providerOptions);