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 logic to handle missing transaction index #693

Merged
merged 2 commits into from
Nov 14, 2022

Conversation

Nana-EC
Copy link
Collaborator

@Nana-EC Nana-EC commented Nov 12, 2022

Signed-off-by: Nana Essilfie-Conduah nana@swirldslabs.com

Description:
It seems occasionally transaction_index can be undefined from mirror node.
Currently the relay throws errors in this case.
While we figure out why

  • add logic to manage undefined transaction_index
  • add tests

Related issue(s):

Fixes #692

Notes for reviewer:

Checklist

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

Signed-off-by: Nana Essilfie-Conduah <nana@swirldslabs.com>
@Nana-EC Nana-EC added enhancement New feature or request P1 labels Nov 12, 2022
@Nana-EC Nana-EC added this to the 0.12.0 milestone Nov 12, 2022
@Nana-EC Nana-EC self-assigned this Nov 12, 2022
@codecov-commenter
Copy link

codecov-commenter commented Nov 12, 2022

Codecov Report

Base: 70.87% // Head: 70.95% // Increases project coverage by +0.08% 🎉

Coverage data is based on head (850bff3) compared to base (f162a63).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #693      +/-   ##
==========================================
+ Coverage   70.87%   70.95%   +0.08%     
==========================================
  Files          16       16              
  Lines        1188     1188              
  Branches      214      214              
==========================================
+ Hits          842      843       +1     
  Misses        286      286              
+ Partials       60       59       -1     
Impacted Files Coverage Δ
packages/relay/src/lib/eth.ts 82.92% <100.00%> (+0.18%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

dimitrovmaksim
dimitrovmaksim previously approved these changes Nov 12, 2022
Copy link
Collaborator

@dimitrovmaksim dimitrovmaksim left a comment

Choose a reason for hiding this comment

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

LG

georgi-l95
georgi-l95 previously approved these changes Nov 13, 2022
Copy link
Collaborator

@georgi-l95 georgi-l95 left a comment

Choose a reason for hiding this comment

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

LG

Signed-off-by: Nana Essilfie-Conduah <nana@swirldslabs.com>
@Nana-EC Nana-EC dismissed stale reviews from georgi-l95 and dimitrovmaksim via 850bff3 November 14, 2022 05:18
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@Nana-EC Nana-EC merged commit 555385f into main Nov 14, 2022
@Nana-EC Nana-EC deleted the 692-handle-missing-transaction-index branch November 14, 2022 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request P1
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Transaction Receipt fails to handle undefined transaction index
4 participants