Removing NodesmithProvider from default provider as it is being discontinued.

This commit is contained in:
Richard Moore 2019-11-19 18:14:40 +09:00
parent da8ca2e8bc
commit 01ca35036c
No known key found for this signature in database
GPG Key ID: 665176BE8E9DC651
2 changed files with 4 additions and 0 deletions

@ -28,11 +28,13 @@ function ethDefaultProvider(network: string): (providers: any) => any {
} catch(error) { } } catch(error) { }
} }
/* NodeSmith is being discontinued on 2019-12-20
if (providers.NodesmithProvider) { if (providers.NodesmithProvider) {
try { try {
providerList.push(new providers.NodesmithProvider(network, options.nodesmith)); providerList.push(new providers.NodesmithProvider(network, options.nodesmith));
} catch(error) { } } catch(error) { }
} }
*/
if (providers.AlchemyProvider) { if (providers.AlchemyProvider) {
try { try {

@ -20,6 +20,8 @@ export class NodesmithProvider extends UrlJsonRpcProvider {
} }
static getUrl(network: Network, apiKey?: any): string { static getUrl(network: Network, apiKey?: any): string {
logger.warn("NodeSmith will be discontinued on 2019-12-20; please migrate to another platform.");
let host = null; let host = null;
switch (network.name) { switch (network.name) {
case "homestead": case "homestead":