Skip to content

Revert "Audit Issue 9: Enforce single payload (#1654)"#1705

Merged
yrong merged 2 commits intomainfrom
ron/revert-enforce-single-payload
Feb 10, 2026
Merged

Revert "Audit Issue 9: Enforce single payload (#1654)"#1705
yrong merged 2 commits intomainfrom
ron/revert-enforce-single-payload

Conversation

@yrong
Copy link
Contributor

@yrong yrong commented Feb 10, 2026

This reverts commit 3c26e64.

@codecov
Copy link

codecov bot commented Feb 10, 2026

Codecov Report

❌ Patch coverage is 75.00000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 81.30%. Comparing base (1832f1a) to head (3b499a4).
⚠️ Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
contracts/src/BeefyClient.sol 75.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1705      +/-   ##
==========================================
+ Coverage   81.04%   81.30%   +0.26%     
==========================================
  Files          22       22              
  Lines         997      995       -2     
  Branches      186      185       -1     
==========================================
+ Hits          808      809       +1     
+ Misses        172      169       -3     
  Partials       17       17              
Flag Coverage Δ
solidity 81.30% <75.00%> (+0.26%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

revert CommitmentNotRelevant();
for (uint256 i = 0; i < commitment.payload.length; i++) {
if (commitment.payload[i].payloadID == MMR_ROOT_ID) {
if (commitment.payload[i].data.length != 32) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this check is unnecessary, if Parity changes the length that would break everything. We can save gas here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@yrong yrong merged commit 2716aee into main Feb 10, 2026
2 checks passed
@yrong yrong deleted the ron/revert-enforce-single-payload branch February 10, 2026 13:09
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.

2 participants