diff --git a/packages/web/src.ts/index.ts b/packages/web/src.ts/index.ts index e89858e652..215d743cf8 100644 --- a/packages/web/src.ts/index.ts +++ b/packages/web/src.ts/index.ts @@ -1,7 +1,6 @@ "use strict"; -import { default as _fetch, Response, RequestInfo, RequestInit } from "node-fetch"; -const fetch: (url: RequestInfo, options: RequestInit) => Promise = _fetch.bind(global); +import fetch from "cross-fetch"; import { encode as base64Encode } from "@ethersproject/base64"; import * as errors from "@ethersproject/errors";