Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix balanceHeld #74

Merged
merged 2 commits into from
Feb 1, 2024
Merged

Fix balanceHeld #74

merged 2 commits into from
Feb 1, 2024

Conversation

juliangruber
Copy link
Member

The state field wasn't being updated in one place, leading to eventual arithmetic overflow. The first commit fixes it and adds a test, the 2nd DRYs up the code to reduce the risk of this happening again.

@juliangruber juliangruber requested a review from bajtos February 1, 2024 15:27
@juliangruber juliangruber merged commit 545c2eb into main Feb 1, 2024
1 check passed
@juliangruber juliangruber deleted the fix/balance-held branch February 1, 2024 15:27
@juliangruber
Copy link
Member Author

@bajtos hindsight please

Copy link
Contributor

@bajtos bajtos left a comment

Choose a reason for hiding this comment

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

👌🏻

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.

2 participants