Skip to content
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

Fix hbar and token transfer tests #10152

Merged
merged 4 commits into from
Jan 17, 2025
Merged

Conversation

kselveliev
Copy link
Contributor

@kselveliev kselveliev commented Jan 16, 2025

Description:
This Pr fixes cryptoTransferHbars, cryptoTransferToken and cryptoTransferHbarsAndToken test in ContractCallServicePrecompileModificationTest.
Those test were failing in the opcode assertion calls.
In the opcode flow we are always having a timestamp in the request.

So even if the timestamp is pretty similar to the latest case token balance and account balance are calculated with the historical queries. This PR adds the token and account balance setup for opcode flow.

Having the blueprint of the token and account balance, now we can fix other opcode test failure which are failing with insufficient payer or token balance.

This PR modifies ... in order to support ...
ContractCallServicePrecompileModificationTest - add token and account balance setup for transfer tests

Related issue(s):

Fixes #

Notes for reviewer:
3342 tests completed, 295 failed, 6 skipped

Checklist

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

Signed-off-by: Kristiyan Selveliev <[email protected]>
@kselveliev kselveliev added this to the 0.122.0 milestone Jan 16, 2025
@kselveliev kselveliev self-assigned this Jan 16, 2025
@kselveliev kselveliev marked this pull request as ready for review January 16, 2025 14:34
@kselveliev kselveliev requested a review from a team as a code owner January 16, 2025 14:34
Copy link

codecov bot commented Jan 16, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.30%. Comparing base (e760376) to head (76a5f66).
Report is 2 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main   #10152      +/-   ##
============================================
- Coverage     92.51%   92.30%   -0.21%     
- Complexity     5470     7821    +2351     
============================================
  Files           710      947     +237     
  Lines         24413    32847    +8434     
  Branches       3201     4151     +950     
============================================
+ Hits          22586    30321    +7735     
- Misses         1072     1550     +478     
- Partials        755      976     +221     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Kristiyan Selveliev <[email protected]>
Signed-off-by: Kristiyan Selveliev <[email protected]>
Copy link
Contributor

@bilyana-gospodinova bilyana-gospodinova left a comment

Choose a reason for hiding this comment

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

LGTM

@steven-sheehy steven-sheehy merged commit 0a8166b into main Jan 17, 2025
36 checks passed
@steven-sheehy steven-sheehy deleted the 09984-fix-transfer-tests branch January 17, 2025 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Type: New feature modularizedEVM web3 Area: Web3 API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants