-
Notifications
You must be signed in to change notification settings - Fork 164
fix: Fix signer nonce translation for batch ethCalls #20315
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
🎉 Snyk checks have passed. No issues have been found so far.✅ security/snyk check is complete. No issues have been found. (View Details) |
Coverage summary from CodacySee diff coverage on Codacy
Coverage variation details
Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: Diff coverage details
Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: See your quality gate settings Change summary preferences |
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## main #20315 +/- ##
=========================================
Coverage 71.22% 71.22%
- Complexity 24136 24137 +1
=========================================
Files 2652 2652
Lines 102279 102279
Branches 10629 10629
=========================================
+ Hits 72851 72853 +2
+ Misses 25454 25452 -2
Partials 3974 3974 see 1 file with indirect coverage changes 🚀 New features to boost your workflow:
|
Signed-off-by: ibankov <ivan.bankov@limechain.tech>
Signed-off-by: ibankov <ivan.bankov@limechain.tech>
Signed-off-by: ibankov <ivan.bankov@limechain.tech>
.../java/com/hedera/services/bdd/suites/contract/leaky/batch/AtomicLeakyContractTestsSuite.java
Show resolved
Hide resolved
@@ -984,4 +981,24 @@ private boolean allMintsAreFound() { | |||
} | |||
return true; | |||
} | |||
|
|||
public boolean isNonceIncremented( |
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.
Can we add some JavaDoc or at least nullability annotations?. Additionally, this is prone to throwing a NullPointerException
if nonce
is null because of currentNonce > nonce
.
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.
Fixed
Signed-off-by: Zhivko Kelchev <zhivko.kelchev@limechain.tech>
@@ -984,4 +981,24 @@ private boolean allMintsAreFound() { | |||
} | |||
return true; | |||
} | |||
|
|||
public boolean isNonceIncremented( |
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.
Fixed
# Conflicts: # hedera-node/test-clients/src/main/java/com/hedera/services/bdd/junit/support/translators/BaseTranslator.java # hedera-node/test-clients/src/main/java/com/hedera/services/bdd/junit/support/translators/impl/EthereumTransactionTranslator.java # hedera-node/test-clients/src/main/java/com/hedera/services/bdd/suites/contract/records/batch/AtomicRecordsSuite.java
Signed-off-by: Zhivko Kelchev <zhivko.kelchev@limechain.tech>
Description:
Add specific translation login in
EthereumTransactionTranslator
for inner batch transactions that populates thesignerNonce
from the inputDataRelated issue(s):
Fixes #
#20344
Notes for reviewer:
Checklist