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

update uses of messageHash and rawTransaction from eth-account to snakecase version per eth-account v0.12.2 #3348

Merged
merged 1 commit into from Apr 16, 2024

Conversation

pacrob
Copy link
Contributor

@pacrob pacrob commented Apr 16, 2024

What was wrong?

eth-account v0.12.2 deprecated messageHash for message_hash and rawTransaction for raw_transaction.

How was it fixed?

Changed all examples to use the snakecase version. In one example in web3.eth.account.rst, both messageHash and message_hash keys are present.

Todo:

  • Clean up commit history
  • Add or update documentation related to these changes
  • Add entry to the release notes

Cute Animal Picture

image

@pacrob pacrob force-pushed the camel-snek-messageHash-rawTransaction branch from 7dc38fd to 897318d Compare April 16, 2024 17:03
@pacrob pacrob marked this pull request as ready for review April 16, 2024 17:15
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 with a clarifying question. This needs to go be merged into v6, right? And v7 / main will have the new version of eth-account with the removals?

@@ -0,0 +1 @@
``eth-account`` ``messageHash`` and ``rawTransaction`` deprecated for snake_case versions
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit:

Suggested change
``eth-account`` ``messageHash`` and ``rawTransaction`` deprecated for snake_case versions
``eth-account``, ``messageHash``, [optional oxford comma] and ``rawTransaction`` deprecated for snake_case versions

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, cleaned that up.

@pacrob pacrob force-pushed the camel-snek-messageHash-rawTransaction branch from 897318d to eebe23b Compare April 16, 2024 19:59
@pacrob
Copy link
Contributor Author

pacrob commented Apr 16, 2024

This needs to go be merged into v6, right? And v7 / main will have the new version of eth-account with the removals?

v6 has its own version getting worked. This is failing now, but I think yes, once eth-account v0.13.0 is released, we can bottom pin that here and remove the stray messageHash from the doctest.

@kclowes
Copy link
Collaborator

kclowes commented Apr 16, 2024

We will need to make the eth-account version here >0.12.2

…kecase version per eth-account v0.12.2, bump eth-account dep to >=0.12.2
@pacrob pacrob force-pushed the camel-snek-messageHash-rawTransaction branch from eebe23b to 0811a87 Compare April 16, 2024 21:10
@pacrob pacrob merged commit c618da2 into ethereum:main Apr 16, 2024
81 checks passed
@pacrob pacrob deleted the camel-snek-messageHash-rawTransaction branch April 16, 2024 21:24
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.

None yet

3 participants