Skip to content

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

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

ibankov
Copy link
Contributor

@ibankov ibankov commented Jul 23, 2025

Description:
Add specific translation login in EthereumTransactionTranslator for inner batch transactions that populates the signerNonce from the inputData

Related issue(s):

Fixes #
#20344
Notes for reviewer:

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

Signed-off-by: ibankov <ivan.bankov@limechain.tech>
@ibankov ibankov added this to the v0.65 milestone Jul 23, 2025
@ibankov ibankov self-assigned this Jul 23, 2025
@lfdt-bot
Copy link

lfdt-bot commented Jul 23, 2025

🎉 Snyk checks have passed. No issues have been found so far.

security/snyk check is complete. No issues have been found. (View Details)

Copy link

codacy-production bot commented Jul 23, 2025

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
+0.00% (target: -1.00%)
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (f78bfe7) 102184 76781 75.14%
Head commit (5723b71) 102184 (+0) 76781 (+0) 75.14% (+0.00%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#20315) 0 0 ∅ (not applicable)

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

See your quality gate settings    Change summary preferences

Copy link

codecov bot commented Jul 23, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

Impacted file tree graph

@@            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

Impacted file tree graph

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

ibankov added 7 commits July 23, 2025 12:58
Signed-off-by: ibankov <ivan.bankov@limechain.tech>
Signed-off-by: ibankov <ivan.bankov@limechain.tech>
Signed-off-by: ibankov <ivan.bankov@limechain.tech>
Signed-off-by: ibankov <ivan.bankov@limechain.tech>
Signed-off-by: ibankov <ivan.bankov@limechain.tech>
Signed-off-by: ibankov <ivan.bankov@limechain.tech>
@ibankov ibankov marked this pull request as ready for review July 24, 2025 09:49
@ibankov ibankov requested review from a team as code owners July 24, 2025 09:49
vtronkov
vtronkov previously approved these changes Jul 24, 2025
@@ -984,4 +981,24 @@ private boolean allMintsAreFound() {
}
return true;
}

public boolean isNonceIncremented(
Copy link
Contributor

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.

Copy link
Contributor

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>
JivkoKelchev
JivkoKelchev previously approved these changes Jul 30, 2025
@@ -984,4 +981,24 @@ private boolean allMintsAreFound() {
}
return true;
}

public boolean isNonceIncremented(
Copy link
Contributor

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants