-
Notifications
You must be signed in to change notification settings - Fork 183
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
Store uri into Session #1153
Store uri into Session #1153
Conversation
DApps should not support both because V1 was deprecated. SymKey is a sensitive information witch is stored into keychain. As we're storing sessions in UserDefaults I think it's not good idea to add this into Session object. @llbartekll what you think? |
@flypaper0 in that case, when the dapp wants the wallet to sign a transaction, how to construct the URL to open it? |
|
@flypaper0 but we don't connect everytime, right? The new V2 stores the connections, and on the next app run it auto connects the old sessions. So f.e. if previously you've connected Trust wallet, and killed and reopened the app, it will still be connected... So you won't call the |
@arturdev if I understand you correctly. |
@llbartekll exactly. So currently |
@llbartekll Could you answer the question, please? |
so the thing is that wallet didn't set the redirect uri in the metadata, we will make this field required in next release. |
Description
Added
wcUri
into the Session for later use.Was supported in WalletConnect V1.
Makes is easy to migrate from WalletConnect V1 from V2 for dApps, especially when dApps have to support both.