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: added support for legacy pre EIP 155 transactions with no chainI… #2240

Merged
merged 1 commit into from
Mar 22, 2024

Conversation

AlfredoG87
Copy link
Collaborator

Description:
Cherry-Pick PR #2228 onto release 0.44

Related issue(s):

Fixes #

Notes for reviewer:

Checklist

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

…D (chainId=0x0) (#2228)

* feat: added support for legacy unprotected ETX pre EIP-155 (chainID=0x0)

Signed-off-by: Logan Nguyen <logan.nguyen@swirldslabs.com>

* test: added new UT for precheck.chainId() with a case that has chainID=0x0

Signed-off-by: Logan Nguyen <logan.nguyen@swirldslabs.com>

* test: fixed UT to allow support for pre EIP155 txs

Signed-off-by: Logan Nguyen <logan.nguyen@swirldslabs.com>

* feat: added isLegacyUnprotectedEtx() method

Signed-off-by: Logan Nguyen <logan.nguyen@swirldslabs.com>

---------

Signed-off-by: Logan Nguyen <logan.nguyen@swirldslabs.com>
@AlfredoG87 AlfredoG87 self-assigned this Mar 22, 2024
@AlfredoG87 AlfredoG87 added the bug Something isn't working label Mar 22, 2024
Copy link

sonarcloud bot commented Mar 22, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
18.2% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

@AlfredoG87 AlfredoG87 added this to the 0.44.0 milestone Mar 22, 2024
@AlfredoG87 AlfredoG87 marked this pull request as ready for review March 22, 2024 19:02
Copy link

Tests

    1 files    35 suites   3s ⏱️
194 tests 193 ✔️ 1 💤 0
197 runs  196 ✔️ 1 💤 0

Results for commit 86da81b.

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 75.15%. Comparing base (6163415) to head (0c7ff7a).

❗ Current head 0c7ff7a differs from pull request most recent head 86da81b. Consider uploading reports for the commit 86da81b to get more accurate results

Additional details and impacted files
@@              Coverage Diff              @@
##           release/0.44    #2240   +/-   ##
=============================================
  Coverage         75.15%   75.15%           
=============================================
  Files                13       13           
  Lines               644      644           
  Branches            118      118           
=============================================
  Hits                484      484           
  Misses              115      115           
  Partials             45       45           

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

Copy link
Collaborator

@Nana-EC Nana-EC left a comment

Choose a reason for hiding this comment

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

LG

@AlfredoG87 AlfredoG87 merged commit ce450f2 into release/0.44 Mar 22, 2024
25 of 28 checks passed
@AlfredoG87 AlfredoG87 deleted the cherry-pick-2228 branch March 22, 2024 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

5 participants