mirror of https://github.com/embarklabs/embark.git
Merge pull request #1016 from embark-framework/warning-on-rpc
add warning on RPC
This commit is contained in:
commit
ebf847eb5a
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue