Merge pull request #1016 from embark-framework/warning-on-rpc

add warning on RPC
This commit is contained in:
Eric Mastro 2018-10-31 10:40:05 +01:00 committed by GitHub
commit ebf847eb5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -80,6 +80,10 @@ class BlockchainConnector {
this.logger.error(__("Accepted types are: %s", BlockchainConnector.ACCEPTED_TYPES.join(', ')));
}
if (type === 'rpc') {
this.logger.warn('Using RPC as deployment connection type is deprecated. It is recommended to use WS.');
}
if (type === 'vm') {
const sim = self._getSimulator();
self.provider = sim.provider(self.config.contractsConfig.deployment);