Skip to content

Conversation

@vaporif
Copy link
Collaborator

@vaporif vaporif commented Dec 22, 2025

Description

closes: #XXXX


Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

  • Linked to GitHub issue with discussion and accepted design, OR link to spec that describes this work.
  • Wrote unit and integration tests.
  • Added relevant natspec and godoc comments.
  • Provide a conventional commit message to follow the repository standards.
  • Re-reviewed Files changed in the GitHub PR explorer.
  • Review SonarCloud Report in the comment section below once CI passes.

@vaporif vaporif requested a review from srdtrk as a code owner December 22, 2025 23:53
@codecov
Copy link

codecov bot commented Dec 23, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.90%. Comparing base (af0f24b) to head (317c2a2).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #872   +/-   ##
=======================================
  Coverage   99.90%   99.90%           
=======================================
  Files          26       26           
  Lines        1084     1084           
=======================================
  Hits         1083     1083           
  Misses          1        1           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Collaborator

@cernicc cernicc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job 👍


- uses: srdtrk/natlint@main
-- TODO: update original repo
- uses: vaporif/natlint@drop-forge-fmt
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest we solve this todo before merging.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vaporif you didn't make a PR to natlint?


// Compile-time verification that discriminator length matches the shared constant
const _: () = assert!(
SignatureVerification::DISCRIMINATOR.len() == solana_ibc_constants::ANCHOR_DISCRIMINATOR_LEN
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the compile time check for the discriminator length. One question. When can the lengths be different?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

potentially anchor allows setting custom discriminators (non 8 bytes).
it's not widely used feature but still better to have this as safeguard


- uses: srdtrk/natlint@main
-- TODO: update original repo
- uses: vaporif/natlint@drop-forge-fmt
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vaporif you didn't make a PR to natlint?

@srdtrk srdtrk merged commit 29e3b8e into main Jan 12, 2026
93 checks passed
@srdtrk srdtrk deleted the vaporif/solana-anchor-hardcode branch January 12, 2026 13:45
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.

4 participants