You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Calling ethereum.enable() while user has privacy mode enabled does not throw when he doesn't allow the dapp to view his account address. Instead it returns normally but the accounts array is undefined. Cannot catch user denying access via promise .catch() nor standard try..catch.
To Reproduce
Steps to reproduce the behavior:
Call ethereum.enable() making sure to handle both success and fail cases (example code here in the docs)
Reject the metamask popup
See that ethereum.enable() did not throw and returned array is undefined
Expected behavior
Acording to docs, calling ethereum.enable() while user has privacy mode enabled should throw when he doesn't allow the dapp to view his account address.
Browser details (please complete the following information):
Describe the bug
Calling ethereum.enable() while user has privacy mode enabled does not throw when he doesn't allow the dapp to view his account address. Instead it returns normally but the accounts array is undefined. Cannot catch user denying access via promise .catch() nor standard try..catch.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Acording to docs, calling ethereum.enable() while user has privacy mode enabled should throw when he doesn't allow the dapp to view his account address.
Browser details (please complete the following information):
Additional context
Problem can be observed here: https://codesandbox.io/s/5zrjm
The text was updated successfully, but these errors were encountered: