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

Add test to confirm preceding child record for HTS transfer #9735

Conversation

georgi-l95
Copy link
Contributor

@georgi-l95 georgi-l95 commented Nov 7, 2023

Description:
Added new test in the AutoCreationSuite which covers this new case and passes in mono codebase as well.
With this change we cover this happy path from issue #9424:

  • A "classic transfer" sending an NFT to an absent receiver address (outside long-zero range) generates a preceding child with a synthetic CryptoCreate and TransactionRecord identical that created by mono-service when it resolves to SUCCESS.

Related issue(s):

Fixes #

Notes for reviewer:

Checklist

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

@georgi-l95 georgi-l95 added the Limechain Work planned for the LimeChain team label Nov 7, 2023
@georgi-l95 georgi-l95 self-assigned this Nov 7, 2023
@georgi-l95 georgi-l95 requested review from a team as code owners November 7, 2023 12:13
Copy link

github-actions bot commented Nov 7, 2023

Node: Unit Test Results

    2 276 files  ±0      2 276 suites  ±0   1h 33m 15s ⏱️ +48s
118 367 tests ±0  118 333 ✔️ ±0  34 💤 ±0  0 ±0 
126 628 runs  ±0  126 594 ✔️ ±0  34 💤 ±0  0 ±0 

Results for commit 12996b8. ± Comparison against base commit e6dc241.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Nov 7, 2023

Node: E2E Test Results

    1 files      1 suites   21m 36s ⏱️
310 tests 310 ✔️ 0 💤 0
332 runs  332 ✔️ 0 💤 0

Results for commit 12996b8.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Nov 7, 2023

Node: Integration Test Results

280 tests   280 ✔️  28m 24s ⏱️
    5 suites      0 💤
    5 files        0

Results for commit 12996b8.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Nov 7, 2023

Node: HAPI Test Results

1 246 tests   851 ✔️  1h 26m 27s ⏱️
   166 suites  395 💤
   166 files        0

Results for commit 12996b8.

♻️ This comment has been updated with latest results.

tinker-michaelj
tinker-michaelj previously approved these changes Nov 8, 2023
Copy link
Collaborator

@tinker-michaelj tinker-michaelj left a comment

Choose a reason for hiding this comment

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

LGTM! 🙌

Signed-off-by: georgi-l95 <glazarov95@gmail.com>

apply spotless

Signed-off-by: georgi-l95 <glazarov95@gmail.com>
@georgi-l95 georgi-l95 force-pushed the 9424-conditional-records-of-account-auto-creation-via-hts-classic-transfer-variants branch from 964f879 to 12996b8 Compare November 8, 2023 17:00
Copy link

codecov bot commented Nov 8, 2023

Codecov Report

Attention: 34 lines in your changes are missing coverage. Please review.

Comparison is base (0806629) 65.44% compared to head (12996b8) 65.43%.
Report is 7 commits behind head on develop.

Additional details and impacted files
@@              Coverage Diff              @@
##             develop    #9735      +/-   ##
=============================================
- Coverage      65.44%   65.43%   -0.02%     
+ Complexity     29983    29981       -2     
=============================================
  Files           3296     3296              
  Lines         125494   125558      +64     
  Branches       13017    13026       +9     
=============================================
+ Hits           82130    82154      +24     
- Misses         40238    40272      +34     
- Partials        3126     3132       +6     
Files Coverage Δ
...edera/node/app/spi/validation/ExpiryValidator.java 0.00% <ø> (ø)
.../node/app/records/impl/BlockRecordManagerImpl.java 82.95% <ø> (ø)
...sus/impl/handlers/ConsensusCreateTopicHandler.java 90.56% <100.00%> (+0.18%) ⬆️
...sus/impl/handlers/ConsensusUpdateTopicHandler.java 77.27% <100.00%> (ø)
.../service/file/impl/handlers/FileCreateHandler.java 90.00% <100.00%> (+0.20%) ⬆️
...n/impl/handlers/NetworkUncheckedSubmitHandler.java 85.71% <ø> (ø)
...mpl/exec/scope/HandleSystemContractOperations.java 100.00% <100.00%> (ø)
...impl/exec/scope/QuerySystemContractOperations.java 100.00% <ø> (ø)
.../impl/exec/systemcontracts/PrngSystemContract.java 97.87% <100.00%> (ø)
...tracts/hts/AbstractNonRevertibleTokenViewCall.java 100.00% <ø> (ø)
... and 16 more

... and 7 files with indirect coverage changes

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

Copy link
Collaborator

@tinker-michaelj tinker-michaelj left a comment

Choose a reason for hiding this comment

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

LGTM!

@georgi-l95 georgi-l95 merged commit 0eb71d7 into develop Nov 8, 2023
15 of 17 checks passed
@georgi-l95 georgi-l95 deleted the 9424-conditional-records-of-account-auto-creation-via-hts-classic-transfer-variants branch November 8, 2023 19:08
Ivo-Yankov pushed a commit that referenced this pull request Nov 9, 2023
Added new test in the AutoCreationSuite which covers this new case and passes in mono codebase as well.
With this change we cover this happy path from issue #9424:

 A "classic transfer" sending an NFT to an absent receiver address (outside long-zero range) generates a preceding child with a synthetic CryptoCreate and TransactionRecord identical that created by mono-service when it resolves to SUCCESS.
Signed-off-by: georgi-l95 <glazarov95@gmail.com>
Signed-off-by: Ivo Yankov <ivo@devlabs.bg>
nickpoorman pushed a commit that referenced this pull request Nov 22, 2023
Added new test in the AutoCreationSuite which covers this new case and passes in mono codebase as well.
With this change we cover this happy path from issue #9424:

 A "classic transfer" sending an NFT to an absent receiver address (outside long-zero range) generates a preceding child with a synthetic CryptoCreate and TransactionRecord identical that created by mono-service when it resolves to SUCCESS.
Signed-off-by: georgi-l95 <glazarov95@gmail.com>
Signed-off-by: Nick Poorman <nick@swirldslabs.com>
@bibitibooo1 bibitibooo1 added this to the v0.46 milestone Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Limechain Work planned for the LimeChain team
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

3 participants