Repository navigation
Conversation
A legacy Anchor IDL lists no discriminators, so the name table named none of its instructions. Convert it with `formatSerdeIdl` before the table reads it, as the instruction decoder does.
|
@askov is attempting to deploy a commit to the Solana Foundation Team on Vercel. A member of the Team first needs to authorize it. |
Contributor
[Medium impact] The PR appears safe to merge, with no new actionable issues found. SummaryThis PR names legacy Anchor instructions by converting their IDLs before building display names.
No new actionable issues were found in the changes since the previous review. Reviews (2) · Last reviewed commit: "test(idl): assert the names of a legacy ..." · Reviewed by Greptile |
…rted The rejected-IDL test checked only that nothing throws, and the no-spec fixture listed the discriminators that the converter computes. Both tests passed when buildProgramIdlNames dropped or converted the IDL.
Woody4618
approved these changes
Nov 27, 2026
Merged
via the queue into
solana-foundation:master
with commit Nov 27, 2026
86fb3d0
12 of 13 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Names the instructions of a program with a legacy Anchor IDL in transaction history. A legacy Anchor IDL lists no instruction discriminators, so history showed
Unknown Instructionfor every instruction of such a program.Changes
formatSerdeIdlinsidebuildProgramIdlNames, so history names match the transaction page.buildProgramIdlNames, so a legacy IDL withoutmetadata.addressconverts.Behavior Changes
Player Profile: Add Keys, where it showedUnknown Program: Unknown Instruction.Instruction #N.PROGRAM_INFO_BY_IDname, for exampleAccount Compressionwhere it showedZK Account Compression Program.Program header
The program header, the
Program IDLtab and the account share image read onlymetadata.name, so they still do not show the top-levelnameof a legacy IDL. This PR changes the names in transaction history, the inspector, the transaction share image and the CU profiling card.Type of change
Screenshots
Testing
Bug fixes
Historytab ofpprofELXjL5Kck7Jn5hCpwAL82DpTkSYBENzahVtbc9on mainnet (localhost · production) and read the instruction names in the rows. Expect names such asPlayer Profile: Add KeysandPlayer Profile: Remove Keys. Production showsUnknown Program: Unknown Instruction.Cause: production builds history names only from the
discriminatorfield of each instruction, and a legacy Anchor IDL has no such field.Historytab of2o48ieM95rmHqMWC5B3tTX4DL7cLm4m1Kuwjay3keQSvon devnet (localhost · production) and read the instruction names in the rows. ExpectSolana Twentyfourtyeight: Push In Direction. Production showsUnknown Program: Unknown Instruction.Cause: the same missing
discriminatorfield.Regression checks
Historytab ofLBUZKhRxPF3XUpBCjp4YzTKgLccjZhTSDM9YuVaPwxoon mainnet (localhost · production) and read the instruction names in the rows. Expect the same names as production.Related Issues
Closes HOO-2982
Checklist
pnpm test,pnpm lint,pnpm typecheck)build:infoscript to update build informationAdditional Notes