-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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(eventindexer): nft balance changes should be wrapped in db transaction #16943
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.
@the-laziest Could you explain more what the PR is for and a way to reproduce the issue?
Sure, @xiaodino, if there will be an error for some reason here (related to db connection or smth like that), then in database NFT balance will be increased for |
Three notes:
|
@cyberhorsey, updated all mentioned things |
Left two comments. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #16943 +/- ##
==========================================
- Coverage 26.82% 17.87% -8.96%
==========================================
Files 105 45 -60
Lines 6188 1992 -4196
==========================================
- Hits 1660 356 -1304
+ Misses 4348 1593 -2755
+ Partials 180 43 -137
☔ View full report in Codecov by Sentry. |
@cyberhorsey , could you please take a look at it? |
LGTM. Thanks for doing the requested changes. |
@cyberhorsey , can I please ask for contributor poap, if it's applicable to this pr |
@gitpoap-bot please give @the-laziest a poap |
Congrats, @the-laziest ! You've earned a GitPOAP for your contribution! GitPOAP: 2024 Taiko Contributor: Head to gitpoap.io & connect your GitHub account to mint! Learn more about GitPOAPs here. |
Increase and subtract of nft balance in db should be done in transaction to prevent corrupted data in case of error in second query