mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-13 23:35:46 +00:00
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(', ')));
|
||||
}
|
||||
|
||||
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…
x
Reference in New Issue
Block a user