Skip to content

Docs bug (React Native SDK): wallet is used instead of smartWalletPubkey #2

@xavierScript

Description

@xavierScript

Hi LazorKit team 👋
There’s an inconsistency in the React Native SDK docs.

The examples use wallet from useWallet():

const { connect, isConnected, wallet } = useWallet();

and later:

fromPubkey: new PublicKey(wallet.smartWallet)

However, the actual hook exposes smartWalletPubkey, not wallet.
Using the docs as-is results in undefined and transaction errors.

Kindly give this a look. Thanks! 🙏

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions