Issue:
I've encountered an error after installing a new Keplr extension and visiting the dapp-inter URL. When attempting to connect with the wallet, I receive the following error:
This happens because when I imported or created my wallet, I didn't select the Agoric Chain. Also, there weren't any options available to select any testing chains:
I noticed that new users may have trouble connecting to the wallet. Typically, we can connect without any problems, but it seems that if we're already connected to the testing chains, it's easier. For example, when I was using the offerup dapp initially and then switched to dapp-inter, connecting my wallet was smooth because I was already connected to the Agoric chain during my work with offerup dapp.
What I've observed is that new users might face difficulty in connecting with the wallet and get the error message I shared above.
So, to fix this, I've utilized the suggestChain utility from @agoric/web-components. Now, whenever we switch between testing networks, it prompts us to connect with the chain first if we're not already connected. I implemented this for the offerup dapp.
NOTE: This issue only occurs in our local environment; the production version works perfectly fine.
Issue: I've encountered an error after installing a new Keplr extension and visiting the dapp-inter URL. When attempting to connect with the wallet, I receive the following error:![image](https://github.com/Agoric/dapp-inter/assets/60459172/dd76a4aa-f5c7-4b7c-a552-746d0e15a56b)
This happens because when I imported or created my wallet, I didn't select the Agoric Chain. Also, there weren't any options available to select any testing chains:![A](https://github.com/Agoric/dapp-inter/assets/60459172/0b38207f-5a37-4f02-a0fa-67967d656fd0)
I noticed that new users may have trouble connecting to the wallet. Typically, we can connect without any problems, but it seems that if we're already connected to the testing chains, it's easier. For example, when I was using the
offerup
dapp initially and then switched todapp-inter
, connecting my wallet was smooth because I was already connected to the Agoric chain during my work withofferup
dapp.What I've observed is that new users might face difficulty in connecting with the wallet and get the error message I shared above.
So, to fix this, I've utilized the
suggestChain
utility from@agoric/web-components
. Now, whenever we switch between testing networks, it prompts us to connect with the chain first if we're not already connected. I implemented this for the offerup dapp.NOTE: This issue only occurs in our local environment; the production version works perfectly fine.