Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] connect(ConnectType.CHROME_EXTENSION) not working #10

Closed
shahzaibatzeeyotech opened this issue Jul 29, 2021 · 7 comments
Closed

Comments

@shahzaibatzeeyotech
Copy link

Hi, i'm calling connect(ConnectType.CHROME_EXTENSION) function but noting happend. however connect(ConnectType.WALLETCONNECT) is working fine.

i also installed terra station extension and setup a wallet

@iamssen
Copy link
Contributor

iamssen commented Jul 30, 2021

Did you check availableConnectTypes before call connect()?

@iamssen
Copy link
Contributor

iamssen commented Jul 30, 2021

{availableInstallTypes.map((connectType) => (
Please refer this link

@shahzaibatzeeyotech
Copy link
Author

yup i checked availableConnectTypes.

availableConnectTypes.includes(ConnectType.WEBEXTENSION) ? { label: "Terra Station Extension", image: <Terra {...size} />, onClick: () => connect(ConnectType.WEBEXTENSION), } : availableConnectTypes.includes(ConnectType.CHROME_EXTENSION) ? { label: "Terra Station Extension", image: <Terra {...size} />, onClick: () => connect(ConnectType.CHROME_EXTENSION), } : []

@iamssen
Copy link
Contributor

iamssen commented Jul 30, 2021

@shahzaibatzeeyotech Hmm... could you check your version? (version of ~/node_modules/@terra-money/wallet-provider/package.json) if the version is not latest (1.2.2) update first please.

and, if you have web link (or repo) please show me. I can't estimate the cause.

@shahzaibatzeeyotech
Copy link
Author

i tried with version 1.2.2. still issue is same

@iamssen
Copy link
Contributor

iamssen commented Jul 30, 2021

I can't help you without the details. (Error message or source code) Try running this example first and see how it differs from your app.

https://github.com/terra-money/wallet-provider/tree/main/templates/create-react-app

@iamssen iamssen closed this as completed Jul 31, 2021
@shahzaibatzeeyotech
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants