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

Connect button, not working #240

Open
arguiot opened this issue Feb 14, 2024 · 2 comments
Open

Connect button, not working #240

arguiot opened this issue Feb 14, 2024 · 2 comments

Comments

@arguiot
Copy link

arguiot commented Feb 14, 2024

I'm trying to use this library and it seems like it just doesn't work with the latest version. I made a Codesandbox to demonstrate:
https://codesandbox.io/p/sandbox/aptos-wallet-66v85n

CleanShot 2024-02-13 at 18 41 24

What am I doing wrong?

@0xmaayan
Copy link
Collaborator

The adapter is written in TypeScript with a type safe mechanism. Your project is written in pure JS. I suspect your issue is because connect expect the wallet name to be of type WalletName but since it is a pure JS program

  1. The IDE doesnt let us know something is wrong with the type we are passing
  2. We can not cast it, i.e connect("pontem" as WalletName)

Can take a look at our demo adapter dapp code for reference https://github.com/aptos-labs/aptos-wallet-adapter/blob/main/apps/nextjs-example/components/WalletButtons.tsx#L32

@ikhsanuddin-UCT
Copy link

Downgrading The "@aptos-labs/wallet-adapter-react" to version 3.3.0 resolves this issue

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

3 participants