fix(eth): serialize empty lists as [] instead of null#7214
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
Walkthrough
ChangesETH empty-list serialization fix
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
✨ Simplify code
Comment |
Codecov Report❌ Patch coverage is
Additional details and impacted files
... and 9 files with indirect coverage changes Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
|
API compare tests failed in |
filtering these methods until lotus fix them |
Is there a Lotus PR fixing this? If so, I'd suggest we use the commit tag once it's merged instead of disabling the tests |
@hanabi1224 we reported it in #fil-lotus-dev also the tracking issue #12214 is long due to be fixed and i don't see any open PR |
@hanabi1224 no more disabling the test for any method |
Summary of changes
Changes introduced in this pull request:
NotNullVecinstead ofVecfor empty lists so they are never null.Reference issue to close (if applicable)
Closes #7205
Other information and links
Change checklist
Outside contributions
Summary by CodeRabbit
Summary
eth_accounts,eth_getBlockReceipts*, andtrace_*to always return non-null arrays, using[]for empty results instead ofnull.accessListhandling: typed transactions serialize an empty access list as[], while legacy transactions omit the field; deserialization treats bothnulland[]as “not present”.accessListrequirements.accessListcases.