Skip to content

fix: remove unused InvalidProofThreshold error from AggregateVerifier#278

Merged
leopoldjoy merged 2 commits into
mainfrom
remove-unused-invalid-proof-threshold-error
May 11, 2026
Merged

fix: remove unused InvalidProofThreshold error from AggregateVerifier#278
leopoldjoy merged 2 commits into
mainfrom
remove-unused-invalid-proof-threshold-error

Conversation

@leopoldjoy
Copy link
Copy Markdown
Contributor

Summary

  • Removes the InvalidProofThreshold custom error declaration from AggregateVerifier.sol and its corresponding ABI snapshot entry.
  • The error was declared but never thrown anywhere in the codebase. PROOF_THRESHOLD is a compile-time constant hardcoded to 1, so no runtime validation guard was ever needed.

Ref: Immunefi #75919

The InvalidProofThreshold custom error was declared but never thrown
anywhere in the codebase. PROOF_THRESHOLD is a compile-time constant
(hardcoded to 1), so the validation guard this error was intended for
was never needed. Remove the dead declaration and its ABI entry.

Ref: Immunefi #75919
@cb-heimdall
Copy link
Copy Markdown
Collaborator

cb-heimdall commented May 11, 2026

✅ Heimdall Review Status

Requirement Status More Info
Reviews 1/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 0
Sum 1

@cb-heimdall cb-heimdall dismissed roger-bai-coinbase’s stale review May 11, 2026 20:38

Approved review 4266411359 from roger-bai-coinbase is now dismissed due to new commit. Re-request for approval.

@leopoldjoy leopoldjoy merged commit 8b5baf3 into main May 11, 2026
7 checks passed
@leopoldjoy leopoldjoy deleted the remove-unused-invalid-proof-threshold-error branch May 11, 2026 20:55
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.

3 participants