Skip to content

fix: TLV parser error#330

Merged
hetdagli234 merged 1 commit intohelius-labs:mainfrom
Lightprotocol:fix-parse-err
Feb 22, 2026
Merged

fix: TLV parser error#330
hetdagli234 merged 1 commit intohelius-labs:mainfrom
Lightprotocol:fix-parse-err

Conversation

@SwenSchaeferjohann
Copy link
Contributor

Please redeploy on Devnet asap.

root cause:

  • light-registry v2.2.0 allows compression of token accounts with TLV extensions
  • the old Borsh Option<Vec<u8>> misreads the Option<Vec<ExtensionStruct>> length, throwing with : Failed to parse token data: Custom { kind: InvalidData, error: "Not all bytes read" }

fix:

  • use TokenData::parse() that reads TLV correctly
  • added Regression tests against block 443787702

@hetdagli234 hetdagli234 self-requested a review February 22, 2026 09:07
@hetdagli234 hetdagli234 merged commit 89abdb1 into helius-labs:main Feb 22, 2026
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