Skip to content

Conversation

@pdobacz
Copy link
Member

@pdobacz pdobacz commented Apr 11, 2025

No description provided.

@pdobacz pdobacz self-assigned this Apr 11, 2025
@pdobacz pdobacz requested a review from chfast April 11, 2025 08:34
@chfast chfast changed the title EOF: Fix rlp_encode of InitcodeTransaction EOF: Add rlp_encode of InitcodeTransaction Apr 11, 2025
@chfast chfast added the EOF label Apr 11, 2025
tx.to.has_value() ? tx.to.value() : bytes_view(), tx.value, tx.data,
tx.access_list, tx.authorization_list, tx.v, tx.r, tx.s);
}
else // Transaction::Type::initcodes
Copy link
Member

Choose a reason for hiding this comment

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

This is kinda weird pattern that for any new tx type we need to convert a comment to if. Maybe change it to proper else if and return something dummy for the default path (can be also unreachable()).

Copy link
Member

Choose a reason for hiding this comment

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

Can be done by separate PR.

tx.to.has_value() ? tx.to.value() : bytes_view(), tx.value, tx.data,
tx.access_list, tx.authorization_list, tx.v, tx.r, tx.s);
}
else // Transaction::Type::initcodes
Copy link
Member

Choose a reason for hiding this comment

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

Can be done by separate PR.

@codecov
Copy link

codecov bot commented Apr 11, 2025

Codecov Report

Attention: Patch coverage is 16.66667% with 5 lines in your changes missing coverage. Please review.

Project coverage is 94.89%. Comparing base (4d6d30e) to head (f1d0c92).
Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
test/state/transaction.cpp 16.66% 5 Missing ⚠️
Additional details and impacted files
@@ Coverage Diff @@ ## master #1192 +/- ## ========================================== - Coverage 94.91% 94.89% -0.03%  ========================================== Files 171 171 Lines 19675 19681 +6 ========================================== + Hits 18675 18676 +1  - Misses 1000 1005 +5 
Flag Coverage Δ
eof_execution_spec_tests 2.53% <0.00%> (-0.01%) ⬇️
ethereum_tests 22.36% <0.00%> (-0.01%) ⬇️
ethereum_tests_silkpre 17.87% <0.00%> (-0.01%) ⬇️
execution_spec_tests 19.56% <16.66%> (-0.01%) ⬇️
unittests 92.44% <0.00%> (-0.03%) ⬇️

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

Files with missing lines Coverage Δ
test/state/transaction.cpp 86.00% <16.66%> (-9.46%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
@pdobacz
Copy link
Member Author

pdobacz commented Apr 11, 2025

We need to release and update EEST to tickle the rlp encoding lines for the new tx type. Making a self not to double check that is the case

@pdobacz pdobacz merged commit 3b689f5 into master Apr 11, 2025
23 of 25 checks passed
@pdobacz pdobacz deleted the fix-rlp-initcode-tx branch April 11, 2025 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3 participants