Skip to content

Conversation

@mariuszzak
Copy link
Collaborator

Description

Add extra validations to avoid panics on [..chunk_count]


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.

srdtrk and others added 30 commits June 26, 2025 15:02
Co-authored-by: srdtrk <srdtrk@hotmail.com>
Co-authored-by: Mariusz Zak <mariuszzak21@gmail.com>
Co-authored-by: srdtrk <srdtrk@hotmail.com>
Co-authored-by: Gjermund Garaba <gjermund@garaba.net>
Co-authored-by: srdtrk <59252793+srdtrk@users.noreply.github.com>
Co-authored-by: Gjermund Garaba <gjermund@garaba.net>
Co-authored-by: Gjermund Garaba <gjermund@garaba.net>
Co-authored-by: Dmytro Onypko <vaporif@proton.me>
Co-authored-by: srdtrk <59252793+srdtrk@users.noreply.github.com>
Co-authored-by: srdtrk <srdtrk@hotmail.com>
Co-authored-by: Gjermund Garaba <gjermund@garaba.net>
Co-authored-by: Mariusz Żak <mariuszzak21@gmail.com>
Co-authored-by: srdtrk <59252793+srdtrk@users.noreply.github.com>
Co-authored-by: srdtrk <srdtrk@hotmail.com>
vaporif and others added 20 commits November 21, 2025 18:10
Co-authored-by: Gjermund Garaba <gjermund@garaba.net>
Co-authored-by: Mariusz Żak <mariuszzak21@gmail.com>
Co-authored-by: srdtrk <59252793+srdtrk@users.noreply.github.com>
Co-authored-by: srdtrk <srdtrk@hotmail.com>
Co-authored-by: Coder <161350311+MamunC0der@users.noreply.github.com>
@mariuszzak mariuszzak self-assigned this Dec 11, 2025
@codecov
Copy link

codecov bot commented Dec 11, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (feat/solana@3519a34). Learn more about missing BASE report.

Additional details and impacted files
@@              Coverage Diff               @@
##             feat/solana     #860   +/-   ##
==============================================
  Coverage               ?   99.87%           
==============================================
  Files                  ?       18           
  Lines                  ?      779           
  Branches               ?        0           
==============================================
  Hits                   ?      778           
  Misses                 ?        1           
  Partials               ?        0           

☔ 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.

@mariuszzak mariuszzak marked this pull request as ready for review December 11, 2025 11:08
@mariuszzak mariuszzak requested a review from srdtrk as a code owner December 11, 2025 11:08
let chunk_count = chunk_count as usize;

require!(
chunk_count > 0 && chunk_count <= ctx.remaining_accounts.len(),
Copy link
Collaborator

Choose a reason for hiding this comment

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

chunk count should never be less than remaining accounts, it's ok if it's equal - means we have no preverifies

Copy link
Collaborator

@vaporif vaporif left a comment

Choose a reason for hiding this comment

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

comment

Base automatically changed from feat/solana to main December 19, 2025 18: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.

5 participants