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
Fixes for wallets #30
Conversation
@RootSoft did you have a chance to look at the PR? |
@3ph Sorry, didn't have a lot of time lately. |
Basically when client requests a new connection, Another thing which was missing was inability to send a response for example for any eth requests. |
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.
Hi, juampi here, also contributing to the wallet part of this lib...
To be compliant with the client API reference (https://docs.walletconnect.com/quick-start/wallets/react-native#manage-call-requests) and to copy the react native implementation (https://docs.walletconnect.com/quick-start/wallets/react-native#manage-call-requests), i would separate the 'sendCustomResponse' method into two methods 'approveRequest' & 'rejectRequest'. This also allows for verbosity. @3ph if you want i can make this change happen and make you a PR?
@RootSoft these methods are vital for a wallet implementation since there is no other way we can communicate with the dapp
@3ph As soon as a uri is passed in the constructor, the
Once the session is approved by the wallet, it returns its client id & metadata to the dapp, see monorepo. The wallet example works as well with the change and fixes the null issue. Are you able to test with an implementation of your own? |
It seems to be working now. If I encounter more issues I'll open a new PR. Thank! |
@RootSoft - there are some issue I've discovered while trying to implement wallet side of WalletConnect: