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

TokenAndTypeCheckFix (#9672) #9844

Merged
merged 5 commits into from Nov 13, 2023
Merged

Conversation

ilko-iliev-lime
Copy link
Contributor

@ilko-iliev-lime ilko-iliev-lime commented Nov 13, 2023

Description:
Purpose of the PR is fixing the TokenAndTypeCheckSuite. Problems with the checkTokenAndTypeNegativeCases were the following:

In case of a call with invalid token ID to the IsTokenCall class, the status of the result was INVALID_TOKEN_ID, which doesn't match the mono output (success in all cases and false on the isToken field).
In case of a call with invalid token ID to the TokenTypeCall class, the status of the result was REVERTED_SUCCESS, which is a status which overrides the correct one after it is returned, so I had to override the execute function.

Related issue(s):

Fixes #9427

Notes for reviewer:

Checklist

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

Signed-off-by: ilko-iliev-lime <ilko.iliev@limechain.tech>
Signed-off-by: ilko-iliev-lime <ilko.iliev@limechain.tech>
Copy link

github-actions bot commented Nov 13, 2023

Node: Unit Test Results

    2 277 files  ±0      2 277 suites  ±0   1h 29m 28s ⏱️ + 2m 41s
118 326 tests  - 1  118 292 ✔️  - 1  34 💤 ±0  0 ±0 
126 587 runs   - 1  126 553 ✔️  - 1  34 💤 ±0  0 ±0 

Results for commit fa6dd91. ± Comparison against base commit d9b49d5.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Nov 13, 2023

Node: E2E Test Results

    1 files      1 suites   21m 33s ⏱️
312 tests 312 ✔️ 0 💤 0
334 runs  334 ✔️ 0 💤 0

Results for commit fa6dd91.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Nov 13, 2023

Node: Integration Test Results

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

Results for commit fa6dd91.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Nov 13, 2023

Node: HAPI Test Results

1 246 tests   868 ✔️  1h 23m 1s ⏱️
   166 suites  378 💤
   166 files        0

Results for commit fa6dd91.

♻️ This comment has been updated with latest results.

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!

@tinker-michaelj tinker-michaelj merged commit d7078a7 into develop Nov 13, 2023
14 of 15 checks passed
@tinker-michaelj tinker-michaelj deleted the 09427-TokenAndTypeCheckSuite-fix branch November 13, 2023 18:27
nickpoorman pushed a commit that referenced this pull request Nov 22, 2023
Signed-off-by: ilko-iliev-lime <ilko.iliev@limechain.tech>
Signed-off-by: Nick Poorman <nick@swirldslabs.com>
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.

Unconditional, enriched records of read-only HTS system contract calls.
2 participants