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

Cherrypick - Extract and Log Contract Revert Reason (#1043) #1070

Merged
merged 1 commit into from
Apr 15, 2023

Conversation

AlfredoG87
Copy link
Collaborator

Description:
Cherry-picks:
#1043

@codecov-commenter
Copy link

codecov-commenter commented Apr 15, 2023

Codecov Report

Patch coverage: 52.94% and project coverage change: -0.20 ⚠️

Comparison is base (72212d7) 74.63% compared to head (7928625) 74.43%.

❗ Current head 7928625 differs from pull request most recent head 5c60128. Consider uploading reports for the commit 5c60128 to get more accurate results

Additional details and impacted files
@@               Coverage Diff                @@
##           release/0.21    #1070      +/-   ##
================================================
- Coverage         74.63%   74.43%   -0.20%     
================================================
  Files                30       30              
  Lines              2030     2046      +16     
  Branches            386      390       +4     
================================================
+ Hits               1515     1523       +8     
- Misses              410      417       +7     
- Partials            105      106       +1     
Impacted Files Coverage Δ
packages/relay/src/lib/constants.ts 100.00% <ø> (ø)
packages/relay/src/lib/errors/SDKClientError.ts 58.82% <0.00%> (-3.68%) ⬇️
packages/relay/src/lib/eth.ts 83.33% <12.50%> (-0.94%) ⬇️
packages/relay/src/lib/clients/mirrorNodeClient.ts 94.16% <100.00%> (+0.16%) ⬆️

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 in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

This PR adds a new mirror node request method, to get transaction by transaction id. This way we can get the contract revert reason. Log this error in the relay log. This makes debugging easier as developers won't have to query manually the mirror-node for every failed test.

Signed-off-by: georgi-l95 <[email protected]>
Signed-off-by: Alfredo Gutierrez <[email protected]>
@AlfredoG87 AlfredoG87 force-pushed the cherry-pick-extract-log branch from cda385c to 5c60128 Compare April 15, 2023 00:11
@Nana-EC Nana-EC added the enhancement New feature or request label Apr 15, 2023
@AlfredoG87 AlfredoG87 marked this pull request as ready for review April 15, 2023 00:11
@Nana-EC Nana-EC added this to the 0.21.1 milestone Apr 15, 2023
@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 added the P1 label Apr 15, 2023
@Nana-EC Nana-EC merged commit 789a97d into release/0.21 Apr 15, 2023
@Nana-EC Nana-EC deleted the cherry-pick-extract-log branch April 15, 2023 00:46
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
None yet
Development

Successfully merging this pull request may close these issues.

4 participants