Skip to content

Conversation

@Xor-el
Copy link
Contributor

@Xor-el Xor-el commented Nov 12, 2025

⚠️ NOTE: This PR has the following fixes a couple of token swap related issues

Status Type ⚠️ Core Change Issue
Ready BugFix No None

Problem

  1. When executing the TokenSwap example, the following error occurs: invalid account data for instruction

  2. The Token Swap Curve Type is decoded incorrectly in DecodeInitializeData due to the use of an incorrect byte offset.

Solution

  1. Updated the instruction builder to use the correct token swap account data length when constructing instructions.

  2. Fixed the DecodeInitializeData method to use the proper byte offset when decoding the Curve Type field.

@BifrostTitan BifrostTitan merged commit 72ef471 into bmresearch:master Nov 13, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants