Skip to content
This repository was archived by the owner on Sep 3, 2026. It is now read-only.
This repository was archived by the owner on Sep 3, 2026. It is now read-only.

Transaction preview creation fails expecting wallet.client without checking for wallet.getClient #493

Description

@10000W

const preview = await createTransactionPreviewIfPossible(this.config, wallet.client, request, wallet);

The WalletAdapter interface does not include a client property, but it expects getClient to be defined.

As a result, thrown error ERROR_CODES.UNKNOWN_EMULATION_ERROR is not clear enough to catch this behavior.

Adding a simple check like wallet.client || wallet.getClient() may fix it, but narrowing a type is probably a better way

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