Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow more networks for proxy contracts #81

Merged
merged 1 commit into from
Apr 8, 2024

Conversation

technophile-04
Copy link
Member

Description

We recently merged #80, it was a quick fix but maybe instead of relying on ethers for alchemy provider (which has very limited providers) we rely on general JsonRpcProvider and get the alchemy link from viem chains.

Also updated the logic a bit so now we only check for proxy contracts if we have viem's alchemy link for that chain

Copy link

vercel bot commented Apr 7, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
abi-ninja-v2 ✅ Ready (Inspect) Visit Preview Apr 7, 2024 1:23pm

@technophile-04 technophile-04 requested a review from Pabl0cks April 7, 2024 13:23
Copy link
Member

@portdeveloper portdeveloper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Tested and it works!

@technophile-04
Copy link
Member Author

Thanks Port, Merging this for now but lets get our custom solution once read 🙌!

@technophile-04 technophile-04 merged commit 52c0381 into main Apr 8, 2024
3 checks passed
Comment on lines +82 to +87
const chain = extractChain({
id: parseInt(network) as AllowedNetwork,
chains: Object.values(scaffoldConfig.targetNetworks),
});
// @ts-expect-error this might be present or might not be
const alchmeyRPCURL = chain.rpcUrls?.alchemy?.http[0];
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

marking this, for future use

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants