Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Remove outdated warning about legacy provider #2856

Merged
merged 1 commit into from
Apr 8, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down