-
Notifications
You must be signed in to change notification settings - Fork 143
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
test: Fix transferFailsWithIncorrectAmounts test #10214
test: Fix transferFailsWithIncorrectAmounts test #10214
Conversation
Node: E2E Test Results 1 files ± 0 1 suites ±0 24m 56s ⏱️ + 24m 56s Results for commit 48a2a4a. ± Comparison against base commit 3a99e37. This pull request removes 1 and adds 311 tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## develop #10214 +/- ##
=============================================
- Coverage 63.01% 62.99% -0.02%
+ Complexity 30824 30816 -8
=============================================
Files 3363 3363
Lines 135414 135419 +5
Branches 14092 14091 -1
=============================================
- Hits 85325 85305 -20
- Misses 46730 46754 +24
- Partials 3359 3360 +1 ☔ 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.
LGTM!
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.
We don't want to throw exceptions out of HtsCall
implementations; we should instead simply return an appropriate haltResult()
or revertResult()
when a negative number is passed here.
Signed-off-by: Stanimir Stoyanov <stanimir.stoyanov@limechain.tech>
Signed-off-by: Stanimir Stoyanov <stanimir.stoyanov@limechain.tech>
Signed-off-by: Stanimir Stoyanov <stanimir.stoyanov@limechain.tech>
Signed-off-by: Stanimir Stoyanov <stanimir.stoyanov@limechain.tech>
Signed-off-by: Stanimir Stoyanov <stanimir.stoyanov@limechain.tech>
Signed-off-by: Stanimir Stoyanov <stanimir.stoyanov@limechain.tech>
Signed-off-by: Stanimir Stoyanov <stanimir.stoyanov@limechain.tech>
Signed-off-by: Stanimir Stoyanov <stanimir.stoyanov@limechain.tech>
f47ab20
to
388f163
Compare
Signed-off-by: Stanimir Stoyanov <stanimir.stoyanov@limechain.tech>
Signed-off-by: Stanimir Stoyanov <stanimir.stoyanov@limechain.tech>
Signed-off-by: Stanimir Stoyanov <stanimir.stoyanov@limechain.tech>
…mounts # Conflicts: # hedera-node/test-clients/src/main/java/com/hedera/services/bdd/suites/leaky/LeakyContractTestsSuite.java
Signed-off-by: Stanimir Stoyanov <stanimir.stoyanov@limechain.tech>
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.
I think it's more general and readable to add a @Nullable ResponseCodeEnum preemptingFailureStatus
to the ClassicTransfersCall
constructor; and set it based on the 3rd argument being negative.
But this works for now, tyvm @stoyanov-st !
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.
Hmm actually this change has unintended consequences and breaks other specs.
I'd suggest adding the @Nullable ResponseCodeEnum preemptingFailureStatus
.
Signed-off-by: Stanimir Stoyanov <stanimir.stoyanov@limechain.tech>
Signed-off-by: Stanimir Stoyanov <stanimir.stoyanov@limechain.tech>
Signed-off-by: Stanimir Stoyanov <stanimir.stoyanov@limechain.tech>
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.
Looks great @stoyanov-st , tyvm! 💯
Description:
Added a missing check for the amounts to be transferred while executing the classic token transfer function.
Related issue(s):
Fixes #
#9396
Notes for reviewer:
Checklist