Ethereum's provider isConnected method returns true always #241
Replies: 3 comments
-
@nbran Thank you for flagging! We are investigating. |
Beta Was this translation helpful? Give feedback.
-
@nbran After discussing this I learned that window.ethereum.isConnected refer's to the provider's connection to RPC nodes, not about the user account. You can find more info here: https://ethereum.stackexchange.com/questions/134183/window-ethereum-isconnected-always-returns-true |
Beta Was this translation helpful? Give feedback.
-
Thanks, @adamdelphantom. I think that doesn't quite explain the issue as the function will return true even if there is no connection to the RPC node (you can replicate easily by calling the function offline). Furthermore, if the function is indeed designed to work as you describe for Ethereum/Polygon, then that would be inconsistent with the equivalents for Solana and Bitcoin which seems to return |
Beta Was this translation helpful? Give feedback.
-
Summary
Even for a dApp that has never been associated with the wallet before.
Example
No response
Steps to Reproduce
window.phantom.ethereum.isConnected();
true
Phantom Version
2.4.8
Is there an existing discussion for this?
Beta Was this translation helpful? Give feedback.
All reactions