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: let 0 value transactions pass #3304

Merged

Conversation

simzzz
Copy link
Contributor

@simzzz simzzz commented Nov 28, 2024

Description:
This PR fixes the case where transactions with a value of 0 would not pass. This is needed because they would pass as valid transactions on the Ethereum network as 0 is a valid value there.

Related issue(s):

Fixes #3105

Notes for reviewer:

Checklist

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

@simzzz simzzz requested review from AlfredoG87, lukelee-sl and a team as code owners November 28, 2024 09:50
ghost

This comment was marked as duplicate.

Copy link
Contributor

@victor-yanev victor-yanev left a comment

Choose a reason for hiding this comment

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

LG, just once concern:

packages/relay/src/lib/precheck.ts Outdated Show resolved Hide resolved
@nadezhdapopovaa nadezhdapopovaa added the enhancement New feature or request label Nov 28, 2024
@nadezhdapopovaa nadezhdapopovaa added this to the 0.62.0 milestone Nov 28, 2024
@simzzz simzzz requested a review from victor-yanev November 29, 2024 11:50
packages/relay/src/lib/precheck.ts Outdated Show resolved Hide resolved
victor-yanev
victor-yanev previously approved these changes Nov 29, 2024
nadezhdapopovaa
nadezhdapopovaa previously approved these changes Dec 2, 2024
Nana-EC
Nana-EC previously approved these changes Dec 2, 2024
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, one nit

packages/relay/src/lib/errors/JsonRpcError.ts Outdated Show resolved Hide resolved
@simzzz simzzz dismissed stale reviews from Nana-EC and nadezhdapopovaa via 2d73d49 December 3, 2024 13:07
Co-authored-by: Nana Essilfie-Conduah <[email protected]>
Signed-off-by: Simeon Nakov <[email protected]>
Copy link

sonarqubecloud bot commented Dec 5, 2024

Copy link
Member

@quiet-node quiet-node left a comment

Choose a reason for hiding this comment

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

Great work! LGTM

@konstantinabl konstantinabl merged commit c006489 into hashgraph:main Dec 6, 2024
41 checks passed
Copy link

codecov bot commented Dec 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.14%. Comparing base (b55ca6b) to head (bc1bc3e).
Report is 15 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #3304       +/-   ##
===========================================
+ Coverage   78.88%   98.14%   +19.26%     
===========================================
  Files          48        4       -44     
  Lines        3608       54     -3554     
  Branches      841       10      -831     
===========================================
- Hits         2846       53     -2793     
+ Misses        423        0      -423     
+ Partials      339        1      -338     
Flag Coverage Δ
config-service 98.14% <ø> (ø)
relay ?

Flags with carried forward coverage won't be shown. Click here to find out more.

see 44 files with indirect coverage changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Let 0-value Ethereum transactions pass
6 participants