From e80d5868d06f7a804c68ddd627311f3f9e318c79 Mon Sep 17 00:00:00 2001 From: andytudhope <13001517+andytudhope@users.noreply.github.com> Date: Wed, 13 Dec 2023 11:44:16 +0200 Subject: [PATCH] cloudflare provider outdated --- packages/dapp/src/utils/connect.js | 2 +- packages/dapp/src/utils/signatures.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/dapp/src/utils/connect.js b/packages/dapp/src/utils/connect.js index 3505128b1..11524ee96 100644 --- a/packages/dapp/src/utils/connect.js +++ b/packages/dapp/src/utils/connect.js @@ -20,7 +20,7 @@ export const provider = ({ chainId }) => { if (chainId === 1337) { return new providers.JsonRpcProvider('http://localhost:8545') } - return new providers.CloudflareProvider() + return new providers.JsonRpcProvider('https://eth-mainnet.g.alchemy.com/v2/EPx6hNqYZwrb0hhmr9nsmavrbM8b6wch') } export const connectorStorageKey = 'sign.kernel.community' diff --git a/packages/dapp/src/utils/signatures.js b/packages/dapp/src/utils/signatures.js index 930771a66..d3d2c9fcb 100644 --- a/packages/dapp/src/utils/signatures.js +++ b/packages/dapp/src/utils/signatures.js @@ -59,7 +59,7 @@ const lookupEnsNames = async (data) => { export const lookUpEns = async (account) => { if (!account) return account - const provider = new ethers.providers.CloudflareProvider() // defaults to homestead + const provider = new ethers.providers.JsonRpcProvider('https://eth-mainnet.g.alchemy.com/v2/EPx6hNqYZwrb0hhmr9nsmavrbM8b6wch') const ens = await provider.lookupAddress(account) return ens ?? account }