mirror of https://github.com/embarklabs/embark.git
add warning on RPC
This commit is contained in:
parent
000a4fe322
commit
5442708020
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue