-
Notifications
You must be signed in to change notification settings - Fork 375
added CAIP-25 to remove the round-trip required for wallet_getCapabilities #540
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
8 Ignored Deployments
|
Are we supposed to also implement logic dapp side to check for this? |
Not sure how to showcase this on dapp side. Example on react-dapp-v2 for EOA account card we can remove wallet_sendCalls, wallet_getCallsStatus methods as we are not supporting batch calls for EOA. |
@KannuSingh Well the point was to remove additional network trip that dapps have to do with We can update I like your idea of showing received |
okay, I will add this in the react-dapp-v2. One another thing I would to check is currently sessionProperties is having type |
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.
lgtm. can you add a test?
added changes in react-dapp-v2 to filters the action for an account based on capabilities in sessionProperties.
This change filtered the actions for account, but if we want to only want to disable buttons for those action I can also add those changes instead of removing the actions. |
I meant an automatic eg unit test to cover this logic and help prevent regressions would also be great |
If it changes we'll update. For not its |
on session approval, wallet capabilities data as defined for wallet_getCapabilities in EIP5792 is added to sessionProperties,
this gives another way for dapps to check wallet's capabilities without requesting via wallet_getCapabilities method.