yearn/yearn.fi

Bug: I don't see an error when I have the chain disabled on frame

saltyfacu opened this issue ยท 2 comments

What happened ๐Ÿ†˜

I try to connect to base, but base is disabled on Frame. I see no error. There should be an error indicating the condition

To Reproduce ๐Ÿ”‚

  • install frame.sh
  • keep base disabled
  • press connect wallet while on base on the dapp
  • nothing happens

More ๐Ÿ”Ž

  • Browser : Arc, Chrome

FYI: Probably something to update in the Weblib

After some investigation, it looks like we are getting no event from frame, preventing us to solve this:
-> A log may pop, but is injected from browser ext, but we are never getting it in out app
-> If your selected chain on Frame is X (either because you just disabled it or because a FE asked the switch) but you disabled X, the connection with the RPC will fail, and Frame will silently fail