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 eth_getТransactionByHash does not return accesslist and yparity for 1559 and 2930 transactions #1696

Conversation

konstantinabl
Copy link
Collaborator

@konstantinabl konstantinabl commented Aug 29, 2023

Description:

This PR modifies the models of the different type of Transactions, so for 1559 and 2930 the v value is deprecated and yParity is used instead.
Related issue(s):

Fixes #1654 #1655

Notes for reviewer:

Checklist

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

Signed-off-by: Konstantina Blazhukova <konstantina.blajukova@gmail.com>
Signed-off-by: Konstantina Blazhukova <konstantina.blajukova@gmail.com>
@codecov-commenter
Copy link

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.86% 🎉

Comparison is base (7725f13) 76.94% compared to head (a870f68) 77.81%.

❗ Current head a870f68 differs from pull request most recent head 8bf231c. Consider uploading reports for the commit 8bf231c to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1696      +/-   ##
==========================================
+ Coverage   76.94%   77.81%   +0.86%     
==========================================
  Files          39       26      -13     
  Lines        2859     2276     -583     
  Branches      575      464     -111     
==========================================
- Hits         2200     1771     -429     
+ Misses        479      362     -117     
+ Partials      180      143      -37     
Files Changed Coverage Δ
packages/relay/src/lib/model.ts 84.53% <100.00%> (+0.32%) ⬆️

... and 13 files with indirect coverage changes

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

Signed-off-by: Konstantina Blazhukova <konstantina.blajukova@gmail.com>
@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

@konstantinabl konstantinabl marked this pull request as ready for review August 30, 2023 14:48
@georgi-l95 georgi-l95 changed the title 1654 eth gettransactionbyhash does not return accesslist and yparity for 1559 and 2930 transactions Fix eth_getТransactionByHash does not return accesslist and yparity for 1559 and 2930 transactions Aug 30, 2023
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

@Nana-EC Nana-EC added this to the 0.31.0 milestone Aug 31, 2023
@Nana-EC Nana-EC added enhancement New feature or request P2 labels Aug 31, 2023
@konstantinabl konstantinabl merged commit c139046 into main Sep 1, 2023
@konstantinabl konstantinabl deleted the 1654-eth_gettransactionbyhash-does-not-return-accesslist-and-yparity-for-1559-and-2930-transactions branch September 1, 2023 07:07
ebadiere pushed a commit that referenced this pull request Sep 1, 2023
… for 1559 and 2930 transactions (#1696)

* replaces v to yParit for 1559 and 2930

Signed-off-by: Konstantina Blazhukova <konstantina.blajukova@gmail.com>

* Fixes tests

Signed-off-by: Konstantina Blazhukova <konstantina.blajukova@gmail.com>

* Fixes tests

Signed-off-by: Konstantina Blazhukova <konstantina.blajukova@gmail.com>

---------

Signed-off-by: Konstantina Blazhukova <konstantina.blajukova@gmail.com>
Signed-off-by: ebadiere <ebadiere@gmail.com>
ebadiere pushed a commit that referenced this pull request Sep 18, 2023
… for 1559 and 2930 transactions (#1696)

* replaces v to yParit for 1559 and 2930

Signed-off-by: Konstantina Blazhukova <konstantina.blajukova@gmail.com>

* Fixes tests

Signed-off-by: Konstantina Blazhukova <konstantina.blajukova@gmail.com>

* Fixes tests

Signed-off-by: Konstantina Blazhukova <konstantina.blajukova@gmail.com>

---------

Signed-off-by: Konstantina Blazhukova <konstantina.blajukova@gmail.com>
Signed-off-by: ebadiere <ebadiere@gmail.com>
ebadiere pushed a commit that referenced this pull request Sep 20, 2023
… for 1559 and 2930 transactions (#1696)

* replaces v to yParit for 1559 and 2930

Signed-off-by: Konstantina Blazhukova <konstantina.blajukova@gmail.com>

* Fixes tests

Signed-off-by: Konstantina Blazhukova <konstantina.blajukova@gmail.com>

* Fixes tests

Signed-off-by: Konstantina Blazhukova <konstantina.blajukova@gmail.com>

---------

Signed-off-by: Konstantina Blazhukova <konstantina.blajukova@gmail.com>
Signed-off-by: ebadiere <ebadiere@gmail.com>
mshakeg pushed a commit to mshakeg/hedera-json-rpc-relay that referenced this pull request Oct 18, 2023
… for 1559 and 2930 transactions (hashgraph#1696)

* replaces v to yParit for 1559 and 2930

Signed-off-by: Konstantina Blazhukova <konstantina.blajukova@gmail.com>

* Fixes tests

Signed-off-by: Konstantina Blazhukova <konstantina.blajukova@gmail.com>

* Fixes tests

Signed-off-by: Konstantina Blazhukova <konstantina.blajukova@gmail.com>

---------

Signed-off-by: Konstantina Blazhukova <konstantina.blajukova@gmail.com>
Signed-off-by: Mo Shaikjee <shaikjeemohammed@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request P2
Projects
None yet
4 participants