cardano-foundation / cardano-connect-with-wallet

This repository aims to provide useful hooks and React components as well as a framework-independent core library
https://cardano-foundation.github.io/cardano-connect-with-wallet/react-storybook
Apache License 2.0
82 stars 25 forks source link

Gerowallet not working[BUG] #15

Closed coding-circulate closed 1 year ago

coding-circulate commented 1 year ago

Describe : Whenever i click on connect button it redirect me on install extension page of gero wallet.

This is the code im running . <ConnectWalletButton alwaysVisibleWallets={["gerowallet", "typhon", "flint", "nufi"]} />

fabianbormann commented 1 year ago

Can you please test if the error will go away if you add gerowallet to the "supportedWallets" prop ?

<ConnectWalletButton supportedWallets={["gerowallet", "typhon", "flint", "nufi"]} alwaysVisibleWallets={["gerowallet"]} />

coding-circulate commented 1 year ago

No it still not working . redirect me on a Gerowallet extension page

fabianbormann commented 1 year ago

Ok I figured it out: gerowallet does not inject it's api to the window.cardano object on localhost nor on unsecure sites (invalid cert). If you deploy your site to production gerowallet will be shown up. You can test this by going to any https site, open the devtools and check "window.cardano.gerowallet" .. on localhost this will be undefined. I will close this issue here and suggest you to contact the gerowallet developers (maybe there is a dev/test mode).

coding-circulate commented 1 year ago

yes its working now thank you so much.

Just for Public Run your react app by this command set HTTPS=true&&npm start and Gerowallet will work