Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ts: Get discriminator lengths dynamically #3120

Conversation

acheroncrypto
Copy link
Collaborator

Problem

TypeScript library uses a hardcoded value for the discriminator length in many places:

/**
* Number of bytes in anchor discriminators
*/
export const DISCRIMINATOR_SIZE = 8;

Summary of changes

  • Remove the DISCRIMINATOR_SIZE constant
  • Get discriminator lengths of instructions, accounts and events dynamically

Note: This PR is part of a greater effort explained in #3097.

Copy link

vercel bot commented Jul 26, 2024

@acheroncrypto is attempting to deploy a commit to the coral-xyz Team on Vercel.

A member of the Team first needs to authorize it.

@acheroncrypto acheroncrypto merged commit 9fce3df into coral-xyz:master Jul 26, 2024
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant