add warning on RPC

This commit is contained in:
Jonathan Rainville 2018-10-31 10:36:30 +01:00
parent 000a4fe322
commit 5442708020
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(', '))); 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') { if (type === 'vm') {
const sim = self._getSimulator(); const sim = self._getSimulator();
self.provider = sim.provider(self.config.contractsConfig.deployment); self.provider = sim.provider(self.config.contractsConfig.deployment);