Skip to content

Conversation

@VolodymyrBg
Copy link
Contributor

@VolodymyrBg VolodymyrBg commented May 15, 2025

What was wrong?

The expected_bytes parameter in the test_eth_account_sign test was defined and provided via parametrization, but was not actually used in the test body. This resulted in a linter warning for an unused variable and missed an opportunity to verify the correctness of the message's byte representation.

How was it fixed?

Added an assertion to check that message.body matches the expected_bytes parameter. This ensures the test validates the correct byte encoding of the message and eliminates the unused variable warning.

Todo:

Cute Animal Picture

Put a link to a cute animal picture inside the parenthesis-->

Copy link
Collaborator

@fselmo fselmo left a comment

Choose a reason for hiding this comment

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

lgtm! I added a newsfragment. Thanks for the PR 👍🏼

@fselmo fselmo merged commit e18f6e9 into ethereum:main Jun 3, 2025
85 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants