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

Fix Chain Ids for QuestChains #1751

Merged
merged 14 commits into from
Jun 11, 2024
Merged

Fix Chain Ids for QuestChains #1751

merged 14 commits into from
Jun 11, 2024

Conversation

dysbulic
Copy link
Member

@dysbulic dysbulic commented Jun 10, 2024

Overview

What features/fixes does this PR include?

Downgrades ethers to v5 for compatibility with Quest Chains.

Specifically, when v5's Provider.isProvider() is called with a v6 Provider, it returns false, causing the contract loading to not work correctly.

Follow up Improvement Ideas

Quest Chains needs to be updated to ethers v6 (which was released almost two years ago) because v5 is incompatible with other libraries like the Ethereum Attestation Service.

Implementation

Most everything present in v6 was also present in v5, but the import paths are different.

Switched from BrowserProvider to Web3Provider which is roughly equivalent.

Copy link

vercel bot commented Jun 10, 2024

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

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
the-game-web ⬜️ Ignored (Inspect) Visit Preview Jun 11, 2024 2:54am

@github-actions github-actions bot temporarily deployed to Test-PR-1751 June 10, 2024 18:49 Destroyed
@github-actions github-actions bot temporarily deployed to Test-PR-1751 June 10, 2024 22:17 Destroyed
@dysbulic dysbulic self-assigned this Jun 11, 2024
@dysbulic dysbulic merged commit ac005d1 into develop Jun 11, 2024
21 checks passed
@dysbulic dysbulic deleted the fix/chain-ids branch June 11, 2024 09:29
Copy link

Successfully undeployed the Preview of this Pull Request

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.

3 participants