Skip to content

Commit

Permalink
cloudflare provider outdated
Browse files Browse the repository at this point in the history
  • Loading branch information
andytudhope committed Dec 13, 2023
1 parent 8973c12 commit e80d586
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/dapp/src/utils/connect.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
2 changes: 1 addition & 1 deletion packages/dapp/src/utils/signatures.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit e80d586

Please sign in to comment.