Skip to content

Conversation

nerolation
Copy link
Contributor

First draft implementation of EIP-7981, which is going to be proposed for Glamsterdam.


for access in access_list:
# Count bytes in address (20 bytes)
for byte in access.account:
Copy link
Contributor

Choose a reason for hiding this comment

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

Counting zero and non-zero bytes is being used in a couple of other places as well, including for call data in calculate_intrinsic_cost. Perhaps it would be a good idea to refactor it into a function in the ethereum.utils.byte module.

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 agree, makes sense

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