Skip to content

Migrate Wallet connect to v2#95

Open
nrjshka wants to merge 10 commits intomainfrom
migrate-wc-to-v2
Open

Migrate Wallet connect to v2#95
nrjshka wants to merge 10 commits intomainfrom
migrate-wc-to-v2

Conversation

@nrjshka
Copy link
Copy Markdown
Contributor

@nrjshka nrjshka commented Jul 21, 2023

No description provided.

@vercel
Copy link
Copy Markdown

vercel Bot commented Jul 21, 2023

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

Name Status Preview Updated (UTC)
web3-wallets ✅ Ready (Inspect) Visit Preview Jul 21, 2023 3:53pm

@what-the-diff
Copy link
Copy Markdown

what-the-diff Bot commented Jul 21, 2023

PR Summary

  • Update to Package Version
    The version indicator in the 'package.json' file has been updated to reflect the current version we're working on, 1.1.12-rc.4.

  • Change in Ethereum Provider
    The mechanism used to allow our software to interact with the Ethereum network, previously '@walletconnect/web3-provider', has now been updated to a more recent version '@walletconnect/ethereum-provider' for improved functionality.

  • Introduction of Constant for Project ID
    A new permanent value 'WALLET_CONNECT_PROJECT_ID' has been introduced into the 'constants.ts' file. This will allow us to use a single, standard identification for our project across various files and functions.

  • Use of New Constant in WalletProvider
    The aforementioned project ID constant has been imported for use within the 'WalletProvider.tsx' file. This allows our wallet provider to consistently use this ID when interacting with the Ethereum network.

  • Update to Event Listeners in WalletProvider
    The event listeners in 'WalletProvider.tsx' file have been updated. They now interact with the new ethereumProvider instead of the older 'walletConnectProvider' to improve the way our product reacts to actions within the Ethereum network.

  • Change to Ethereum Provider in Types
    The mention of 'WalletConnectProvider' in the 'types.ts' file has been replaced with 'EthereumProvider'. This reflects the change in our Ethereum network interaction method.

  • Change to WalletProvider Type
    In our default settings for wallet state ('TWalletStateDefault' in the 'types.ts' file), we've now identified our 'walletProvider' type to be 'EthereumProvider'. Once again, this change allows our wallet state to remain consistent with the change in Ethereum network interaction method.

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.

1 participant