Skip to content

program: Add comment for program discriminator#77

Merged
febo merged 1 commit into
mainfrom
febo/discriminator-note
Jun 3, 2026
Merged

program: Add comment for program discriminator#77
febo merged 1 commit into
mainfrom
febo/discriminator-note

Conversation

@febo
Copy link
Copy Markdown
Contributor

@febo febo commented Jun 3, 2026

Problem

When checking the discriminator on a program account, only the first byte is checked since there are fewer than 256 account types. Currently, the rationale is not explained.

Solution

Add a comment to clarify the use of only 1 byte.

@febo febo requested a review from joncinque June 3, 2026 09:23
@febo febo merged commit 2c8602a into main Jun 3, 2026
21 checks passed
@febo febo deleted the febo/discriminator-note branch June 3, 2026 11:20
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