-
Notifications
You must be signed in to change notification settings - Fork 101
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(permit): improve permittable detection #3226
fix(permit): improve permittable detection #3226
Conversation
- Removed @web3-react/walletconnect - Added @walletconnect/ethereum-provider as it's a dependency of @web3-react/walletconnect-v2 - Moved @web3-react/types to dev deps
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
New, updated, and removed dependencies detected. Learn more about Socket for GitHub ↗︎
🚮 Removed packages: @web3-react/[email protected] |
c33c5b2
to
abe22f6
Compare
"@web3-react/network": "^8.2.0", | ||
"@web3-react/types": "^8.2.0", | ||
"@web3-react/url": "^8.2.0", | ||
"@web3-react/walletconnect": "^8.2.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need for this anymore, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep
CLA Assistant Lite bot: I have read the CLA Document and I hereby sign the CLA 1 out of 2 committers have signed the CLA. |
|
||
// Update provider when network is changed on wallet side | ||
connector.provider?.on('chainChanged', (chainIdHex: string) => { | ||
initCustomProvider(self, connector, +chainIdHex) | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the actual fix!
Thanks Sasha!
Everything else is not necessary but good to have as improvements.
Summary
Fixes #3221
WC network switching was not changing the provider network
To Test
permittableTokens
localStorage key if you have itpermit
[checkTokenIsPermittable] Not a permittable token 0x91056d4a53e1faa1a84306d4deaec71085394bc8 nonce not supported
permittableTokens
localStorage key to see the token info