Skip to content

Bug: Farcaster mini-app fails to connect to wallet #2434

@kraikov

Description

@kraikov

Describe the bug and the steps to reproduce it

Using the latest versions of @coinbase/onchainkit fails to properly connect a wallet while using a mini app on Farcaster.

export function MiniKitContextProvider({ children }: { children: ReactNode }) {
  return (
    <MiniKitProvider
      apiKey={process.env.NEXT_PUBLIC_CDP_CLIENT_API_KEY}
      chain={base}
      config={{
        wallet: {
          preference: "all",
        },
      }}
    >
      {children}
    </MiniKitProvider>
  );
}

Connect button:

        <Wallet>
          <ConnectWallet className="rounded-full uppercase px-8 py-4">
            <Avatar className="h-6 w-6" />
            <Name />
          </ConnectWallet>
          <WalletDropdown>
            <Identity className="px-4 pt-3 pb-2" hasCopyAddressOnClick>
              <Avatar />
              <Name />
              <Address />
              <EthBalance />
            </Identity>
            <WalletDropdownDisconnect />
          </WalletDropdown>
        </Wallet>
Image

What's the expected behavior?

No response

What version of the libraries are you using?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    need-more-infoThe issue doesn't contain sufficient information to be able to debug the problem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions