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
There is a challenge in Alchemy where the following happens:
you are using MetaMask
you are running Alchemy and the current account 0x1 is taken from the localStorage cache, and your account is not yet connected (readonly mode)
account 0x2 is currently selected in MetaMask
you attempt any operation that will require signing in MetaMask
the operation automatically tries to connect your account
you are successfully connected and the Alchemy current account automatically switches to 0x2
At this point the operation you attempted in step 4 will be attempted on one account or the other, 0x1 or 0x2. Which account depends on asynchronous timing, but it can easily happen that an error will occur and the UI may not handle it well. Or the operation originally attempted by 0x1 may be performed on behalf of 0x2 instead, and succeed, which would not feel like a success from the user's point of view.
I think the best approach to this is to require a connection earlier in the workflow.
Second is to detect when the account changes in this scenario and abort with an appropriate notification message.
One place where this is an issue is when (un)following a DAO or proposal.
The text was updated successfully, but these errors were encountered:
There is a challenge in Alchemy where the following happens:
At this point the operation you attempted in step 4 will be attempted on one account or the other, 0x1 or 0x2. Which account depends on asynchronous timing, but it can easily happen that an error will occur and the UI may not handle it well. Or the operation originally attempted by 0x1 may be performed on behalf of 0x2 instead, and succeed, which would not feel like a success from the user's point of view.
I think the best approach to this is to require a connection earlier in the workflow.
Second is to detect when the account changes in this scenario and abort with an appropriate notification message.
One place where this is an issue is when (un)following a DAO or proposal.
The text was updated successfully, but these errors were encountered: