-
Notifications
You must be signed in to change notification settings - Fork 90
Add nullable check to estimateGas validation (#849) #852
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
Conversation
Codecov ReportBase: 73.76% // Head: 73.79% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #852 +/- ##
==========================================
+ Coverage 73.76% 73.79% +0.02%
==========================================
Files 29 29
Lines 1776 1778 +2
Branches 324 325 +1
==========================================
+ Hits 1310 1312 +2
Misses 372 372
Partials 94 94
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. |
MM seems to send a null data param in the transaction object. We should not be validating in that case. - Expand trace logs to `eth.estimateGas()` to highlight param - Add nullable concept to validation object params and set data in transaction object to nullable - Expand `predefined.INVALID_PARAMETER` logs to make failures easier to troubleshoot - Updated and expanded tests to confirm `isValidAndNonNullableParam` logic - Updated RPC tests impacted by addition of value to the log Signed-off-by: georgi-l95 <[email protected]> Signed-off-by: Nana Essilfie-Conduah <[email protected]> Signed-off-by: georgi-l95 <[email protected]> Co-authored-by: georgi-l95 <[email protected]>
d424974 to
deda781
Compare
Signed-off-by: georgi-l95 <[email protected]>
|
Kudos, SonarCloud Quality Gate passed!
|
georgi-l95
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LG








Description:
Cherry pick of #849 to main for consistency
MM seems to send a null data param in the transaction object. We should not be validating in that case.
eth.estimateGas()to highlight parampredefined.INVALID_PARAMETERlogs to make failures easier to troubleshootisValidAndNonNullableParamlogicSigned-off-by: georgi-l95 [email protected]
Signed-off-by: Nana Essilfie-Conduah [email protected]
Signed-off-by: georgi-l95 [email protected]
Co-authored-by: georgi-l95 [email protected]
Related issue(s):
Addresses #836
Notes for reviewer:
Checklist