Closed ferostabio closed 1 year ago
In the cases above, there's no reason for the 3-chain error to happen. I suppose we are doing unnecessary calls to the SDK with inputs that are not wanted by the user (fighting with the initial values maybe?)
- When I disconnected manually from MM, I got this error thrown
I tested this a lot a couple of weeks ago -it never crashed. I'm guessing the latest MM upgrade broke things.
I tested this a lot a couple of weeks ago -it never crashed. I'm guessing the latest MM upgrade broke things.
Turns out it is @web3-onboard/core
the one that's crashing. When the wallet is disconnected, a subscription is triggered and the following line crashes because wallets is an empty array []
.
const { accounts } = wallets.find(wallet => wallet.label === label);
Please test this PR on: https://v2-staging-439-dot-fuji-306908.ey.r.appspot.com