Skip to content

Conversation

@nickeynikolovv
Copy link
Contributor

@nickeynikolovv nickeynikolovv commented Jun 20, 2025

In java SDK there is a MirrorNodeContractEstimateGasQuery which can be used for gas estimation queries. Currently we perform manually a contract call with given parameters. This PR refactors the acceptance tests to use estimate query instead of manual contract call

Fixes #11152

Notes for reviewer:
Should not merge before modularized is 100% on all environments

Checklist

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

In java SDK there is a MirrorNodeContractEstimateGasQuery which can be used for gas estimation queries. Currently we perform manually a contract call with given parameters. This PR refactors the acceptance tests to use estimate query instead of manual contract call

---------

Signed-off-by: Nikolay Nikolov <[email protected]>
@nickeynikolovv nickeynikolovv self-assigned this Jun 20, 2025
@nickeynikolovv nickeynikolovv added enhancement Type: New feature test Test infrastructure, automated tests required, etc labels Jun 20, 2025
@lfdt-bot
Copy link

lfdt-bot commented Jun 20, 2025

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

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

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

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

Signed-off-by: Nikolay Nikolov <[email protected]>
@codacy-production
Copy link

codacy-production bot commented Jun 20, 2025

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
-31.43% (target: -1.00%)
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (2a0f267) 36925 33637 91.10%
Head commit (1f461ff) 60911 (+23986) 36343 (+2706) 59.67% (-31.43%)

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 (#11432) 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

@lfdt-bot
Copy link

lfdt-bot commented Sep 4, 2025

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

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@nickeynikolovv nickeynikolovv marked this pull request as ready for review September 4, 2025 10:52
@nickeynikolovv nickeynikolovv requested a review from a team as a code owner September 4, 2025 10:52
@bilyana-gospodinova bilyana-gospodinova self-assigned this Oct 3, 2025
@IvanKavaldzhiev IvanKavaldzhiev self-assigned this Oct 6, 2025
@bilyana-gospodinova bilyana-gospodinova removed their assignment Oct 6, 2025
@steven-sheehy
Copy link
Contributor

Seems like some issue in CI acceptance tests around ledger ID and changes in PR

@steven-sheehy steven-sheehy added this to the 0.141.0 milestone Oct 7, 2025
Signed-off-by: Ivan Kavaldzhiev <[email protected]>
Signed-off-by: Ivan Kavaldzhiev <[email protected]>
Copy link
Contributor

@xin-hedera xin-hedera left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@xin-hedera xin-hedera merged commit fd38f45 into main Oct 15, 2025
34 of 36 checks passed
@xin-hedera xin-hedera deleted the add-estimate-gas-query-to-the-acceptance-tests branch October 15, 2025 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Type: New feature test Test infrastructure, automated tests required, etc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Adapt acceptance tests to use MirrorNodeContractEstimateGasQuery for gas estimations

7 participants