Skip to content

Feature: update wallet context to support EIP-6963#9

Merged
krishan711 merged 2 commits into
mainfrom
eip6963
Jul 22, 2025
Merged

Feature: update wallet context to support EIP-6963#9
krishan711 merged 2 commits into
mainfrom
eip6963

Conversation

@krishan711
Copy link
Copy Markdown
Contributor

Description

Screenshots:

Checklist:

  • I have updated the CHANGELOG with a summary of my changes
  • I have updated the documentation accordingly

@krishan711 krishan711 requested a review from Copilot July 22, 2025 15:26
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR implements EIP-6963 support for wallet discovery and connection, moving away from relying solely on window.ethereum to a standardized provider discovery mechanism. The changes enable users to choose from multiple detected wallets and maintain their selection across sessions.

Key changes:

  • Added EIP-6963 interface definitions for standardized wallet provider discovery
  • Implemented provider detection through event-based discovery mechanism with localStorage persistence
  • Updated dependency versions to support new functionality

Reviewed Changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 5 comments.

File Description
src/model.ts Adds EIP-6963 TypeScript interface definitions for provider info, details, and events
src/Web3AccountContext.tsx Implements EIP-6963 provider discovery, selection logic, and auto-reconnection functionality
package.json Updates ethers and React type dependencies to newer versions
CHANGELOG.md Documents the major refactoring to use EIP-6963

Comment thread src/Web3AccountContext.tsx
Comment thread src/Web3AccountContext.tsx
Comment thread src/Web3AccountContext.tsx
Comment thread src/Web3AccountContext.tsx
Comment thread src/Web3AccountContext.tsx
@krishan711 krishan711 merged commit ba8a04c into main Jul 22, 2025
3 checks passed
@krishan711 krishan711 deleted the eip6963 branch July 22, 2025 15:32
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