Skip to content

feat: add overflow validation for input and recipient sums in state transitions - #2886

Merged
shumkov merged 1 commit into
feat/platformAddressesfrom
fix/overflows
Dec 10, 2025
Merged

shumkov merged 1 commit into
feat/platformAddressesfrom
fix/overflows

Conversation

@shumkov

@shumkov shumkov commented Dec 9, 2025 •

Copy link
Copy Markdown
Collaborator

Issue being fixed or feature implemented

Some overflow checks are missing. It won't happen due to other logic, but it's better to have it anyway.

What was done?

  • Added additional overflow checks.

How Has This Been Tested?

Add unit tests

Breaking Changes

None

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have added "!" to the title and described breaking changes in the corresponding section if my code contains any
  • I have made corresponding changes to the documentation if needed

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

@coderabbitai

coderabbitai Bot commented Dec 9, 2025 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/overflows

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@QuantumExplorer QuantumExplorer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

These issues can't actually happen, but I guess we should merge this in, it doesn't really add more processing and it hardens the system.

@QuantumExplorer
QuantumExplorer marked this pull request as ready for review December 10, 2025 07:10
@shumkov shumkov added this to the v2.2.0 milestone Dec 10, 2025
@shumkov shumkov self-assigned this Dec 10, 2025
@shumkov
shumkov merged commit b8afffc into feat/platformAddresses Dec 10, 2025
@shumkov
shumkov deleted the fix/overflows branch December 10, 2025 07:35
@bezibalazs bezibalazs modified the milestones: v2.2.0, v3.0.0 Jan 13, 2026
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