-
Notifications
You must be signed in to change notification settings - Fork 80
fix: added check for positive amount #3588
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Dmitry <[email protected]>
Hey @mdqst thanks for opening the PR! The team will get to review this PR soon. In the meantime, could you please create a GitHub issue detailing the project’s problem and kindly link it to this PR? We enforce this pattern to ensure every PR is associated with an issue, providing clear context for future reference if revisiting the changes is needed. |
Hey @mdqst hope things are going fine for you. Just wanted to make sure you got this message #3588 (comment) above |
I want to emphasize that adding the check for a positive amount is critical to prevent errors when attempting to perform a transaction with a zero or negative amount. Without this check, the system might process invalid transactions, leading to unwanted consequences. This PR addresses that issue and improves system stability. I believe this change should be merged as soon as possible to prevent potential issues in the future. |
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.
LGTM
Codecov ReportAll modified and coverable lines are covered by tests ✅ @@ Coverage Diff @@
## main #3588 +/- ##
=======================================
Coverage ? 35.02%
=======================================
Files ? 71
Lines ? 4637
Branches ? 979
=======================================
Hits ? 1624
Misses ? 2786
Partials ? 227 🚀 New features to boost your workflow:
|
@mdqst I understand the critical impact, but please create a new issue describing the problem and link it to the PR. Otherwise, the PR label and milestone checks will fail: https://github.com/hiero-ledger/hiero-json-rpc-relay/actions/runs/14062654716/job/40201063266?pr=3588 |
@mdqst any update? |
Description:
Added a check to ensure
amount
is greater than zero, preventing transfers with invalid or zero amounts.Checklist