Skip to content

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

Description

@xavierScript

Hi LazorKit team 馃憢
There鈥檚 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! 馃檹

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions