From b74ff479823a606a31d0995992457d8263a31b61 Mon Sep 17 00:00:00 2001 From: "g. nicholas d'andrea" Date: Fri, 8 Apr 2022 12:50:58 -0400 Subject: [PATCH] Remove outdated warning As per #2558, remove warning about non-EIP-1193 providers --- .../ethereum/src/forking/handlers/provider-handler.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/chains/ethereum/ethereum/src/forking/handlers/provider-handler.ts b/src/chains/ethereum/ethereum/src/forking/handlers/provider-handler.ts index 0bc554cd49..462a1177c0 100644 --- a/src/chains/ethereum/ethereum/src/forking/handlers/provider-handler.ts +++ b/src/chains/ethereum/ethereum/src/forking/handlers/provider-handler.ts @@ -36,10 +36,6 @@ export class ProviderHandler extends BaseHandler implements Handler { } }; } else if (typeof (provider as any).send === "function") { - // TODO: remove support for legacy providers' legacy `.send` - console.warn( - "WARNING: Ganache forking only supports EIP-1193-compliant providers. Legacy support for send is currently enabled, but will be removed in a future version _without_ a breaking change. To remove this warning, switch to an EIP-1193 provider. This error is probably caused by an old version of Web3's HttpProvider (or ganache < v7)" - ); this._request = async (method: string, params: unknown[]) => { return await new Promise((resolve, reject) => { const request = {