diff --git a/src/common/utils.ts b/src/common/utils.ts index d771f0d8..d8691a95 100644 --- a/src/common/utils.ts +++ b/src/common/utils.ts @@ -19,7 +19,6 @@ import { OpenAttestationEthereumDocumentStoreStatusCode, OpenAttestationEthereumTokenRegistryStatusCode, } from "../types/error"; -import { warnProvider } from "../common/messages"; export const getDefaultProvider = (options: VerificationBuilderOptionsWithNetwork): providers.Provider => { const network = options.network || process.env.PROVIDER_NETWORK || "homestead"; @@ -65,7 +64,6 @@ export const generateProvider = (options?: ProviderDetails): providers.Provider const url = options?.url || process.env.PROVIDER_ENDPOINT_URL || ""; const apiKey = options?.apiKey || (provider === "infura" && process.env.INFURA_API_KEY) || process.env.PROVIDER_API_KEY || ""; - !apiKey && console.warn(warnProvider); if (!!options && Object.keys(options).length === 1 && url) { return new providers.JsonRpcProvider(url);