diff --git a/src.ts/providers/infura-provider.ts b/src.ts/providers/infura-provider.ts index 0eebe0c3..55c433cb 100644 --- a/src.ts/providers/infura-provider.ts +++ b/src.ts/providers/infura-provider.ts @@ -53,6 +53,7 @@ export class InfuraProvider extends JsonRpcProvider { // Legacy API Access Token } else { + errors.warn("The legacy INFURA apiAccesToken API is deprecated; please upgrade to a Project ID instead (see INFURA dshboard; https://infura.io)"); super('https://' + host + '/' + projectId, standard); defineReadOnly(this, 'apiAccessToken', projectId); defineReadOnly(this, 'projectId', null);