chore: remove imToken does not support wallet_switchEthereumChain flag #1921
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR updates the SDK to support imToken's
wallet_switchEthereumChain
method, as imToken has introduced support for this method since April 29, 2022. The current version of the SDK includes a flag indicating that imToken does not supportwallet_switchEthereumChain
. However, this flag is no longer accurate and needs to be removed to enable seamless integration with imToken.Changes Made:
wallet_switchEthereumChain
' flag from the SDK codebase.wallet_switchEthereumChain
.By updating the SDK to align with imToken's capabilities, developers using imToken will have access to the full functionality of
wallet_switchEthereumChain
, enhancing their experience and enabling smoother interaction with Ethereum chains. Please review and merge this PR to ensure compatibility and improved integration between imToken and the SDK.PLEASE NOTE- Checklist must be complete prior to review.
Checklist
package.json
of the package you have made changes in following semantic versioning and using alpha release taggingyarn check-all
to confirm there are not any associated errorsDocs Checklist
docs/package.json
file (if applicable)If this PR includes changes to add an injected wallet or SDK wallet module:
Please complete the following using the internal demo package.
To run this demo use the command
yarn && yarn dev
to get the project running athttp://localhost:8080/
Tests with demo app (injected)
Tests with demo app (SDK)