Skip to content

fix: skip zero-amount pending mints in ExecuteMints - #49

Merged
rsolari merged 1 commit into
mainfrom
rsolari/skip-zero-mints
Feb 10, 2026
Merged

fix: skip zero-amount pending mints in ExecuteMints#49
rsolari merged 1 commit into
mainfrom
rsolari/skip-zero-mints

Conversation

@rsolari

@rsolari rsolari commented Feb 10, 2026

Copy link
Copy Markdown
Contributor

Summary

The ExecuteMints script was attempting to execute mint requests with zero token amounts, causing transaction failures. This change filters out zero-amount mints alongside existing checks for executed and vetoed requests.

Changes

  • Add amount > 0n check to pending mint filter in findPendingMintRequests()

🤖 Generated with Claude Code

The script was attempting to execute mint requests with zero token amounts,
which caused transaction failures. Add a check to filter out mints where
amount is 0 alongside existing checks for executed and vetoed status.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

Coverage after merging rsolari/skip-zero-mints into main will be

73.33%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
src
   ZkStaker.sol68.42%100%50%73.33%79, 85, 90, 95

@rsolari
rsolari merged commit 37eb54e into main Feb 10, 2026
4 checks passed
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.

1 participant