Skip to content

πŸ”₯ Issue: insufficient funds when swapping SOL for NFT using mpl-hybridΒ #19

@Mibrahimwali

Description

@Mibrahimwali

❗ Description
When attempting to perform a swapSolForNft action using the CaptureV1 instruction in the mpl-hybrid program, the transaction fails with an insufficient funds error even though the wallet has sufficient SOL balance.

πŸ“‹ Reproduction Steps
Use the mpl-hybrid SDK to configure a swap of SOL for an NFT.
Ensure escrow is correctly set with the required amounts (1 SOL for NFT + 1 SOL fee).
Initiate CaptureV1 instruction.
Observe error in logs and transaction simulation.

Log:
Program log: Instruction: Transfer
Program log: Error: insufficient funds
Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA failed: custom program error: 0x1

Program MPL4o4wMzndgh8T1NVDxELQCj5UQfYTYEkabX3wNKtb failed: custom program error: 0x1

Transaction : https://solscan.io/tx/2dr4Y4dx93eL8sguij9Q6LC5PMtSZguqzv77vMX5q6dBsa8jgSyFxPwBjcMqVChGtvJrm3p4nFYDrTvzZe9PXKhY?cluster=devnet

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