-
Notifications
You must be signed in to change notification settings - Fork 85
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: transfer debt event with updated repaid amount #1837
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix looks good! Would be nice to have test :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we add a unit test to assert event payloads? IMO, every hotfix should either include a test fix or add a new test.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1837 +/- ##
==========================================
- Coverage 46.91% 46.88% -0.04%
==========================================
Files 165 165
Lines 12950 12950
==========================================
- Hits 6076 6071 -5
- Misses 6874 6879 +5 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great catch!
Sure! I always forget to test events properly, and I should. |
* fix transfer debt event with updated repaid amount * add tests for checking repay events
Description
TransferEvent
was set with the initialrepaid_amount
. That amount changes once it is processed and could not be the amount that it's really applied.