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
Bug: connected
and isConnected()
always return true
#799
Comments
thanks for reporting this @toteto . |
One thing we should rely on is provider errors to state when the chain or provider is disconnected. We could leverage walletlink sessions to validate the connection. This might require moving the check into the relays.
|
@cb-jake thanks for your answer. Just to be clear, even though the EIP-1193 is big vague about how it defines connectivity, the expected behavior for |
@toteto Yes, I believe we should populate the value based on whether the wallet is connected or not. |
@toteto is this issue still open? |
Haven't checked yet, still using 3.6.3, haven't updated to latest to check. |
Just chiming in here: The isConnected flag would presumably indicate you're connected to the the walletlink server - which indicates you are ready to publish messages. Those messages are then queued for the user who may join the session at a later time. Is there a use-case for needing to know whether or not the user is receiving the messages live vs submitting to their queue? With the current implementation the SDK does receive a message when the user connects - and that could be used to indicate a live connection. However - if the user connects to the session first and then the dapp connects, the SDK does not receive a message indicating the user is already present. Or if the user disconnects from the session we aren't aware of that in the SDK. I'm not sure if there's a message type we could potentially use to detect a user is connected. |
Describe the bug
The
CoinbaseWalletProvider
is always reporing as conected regardless whethers it is actually conntected to a DApp or notSteps
CoinbaseWalletProvider with
coinbaseWalletSdk.makeWeb3Provider(...)`connected
orisConnected
true
always.Expected behavior
The SDK return
false
when there is no connection established between the DApp and the wallet applicationVersion
No response
Additional info
coinbase-wallet-sdk/packages/wallet-sdk/src/provider/CoinbaseWalletProvider.ts
Lines 222 to 228 in 84ddf4a
Desktop
No response
Smartphone
No response
The text was updated successfully, but these errors were encountered: