Skip to content

Conversation

@fselmo
Copy link
Owner

@fselmo fselmo commented Oct 29, 2025

What was wrong?

closes #27

How was it fixed?

Make the finalize_transaction_changes more generic as normalize_balance_changes. Call this after withdrawals which normalize if pre == post to not be included as a change.

We only have two tests failing after this in #23 for withdrawals with zero value to non-existent accounts. The test expects the account to be in the BAL with empty changes, is this the expected behavior?

^ fixed the last 2 fails here. Everything is passing for me after these changes, let's just make sure this is how we want to implement it @raxhvl @nerolation

Cute Animal Picture

🐇

@fselmo fselmo force-pushed the fix/withdrawals-zero-transfer branch from 8c6b852 to 9fce100 Compare October 29, 2025 22:37
Repository owner deleted a comment from cr-gpt bot Oct 29, 2025
Repository owner deleted a comment from cr-gpt bot Oct 29, 2025
@nerolation
Copy link
Collaborator

I'm fine using "normalize", no strong opinion on it, but would "filtering" be more accurate?

@fselmo
Copy link
Owner Author

fselmo commented Oct 30, 2025

@nerolation I'm good with filtering naming. Do you prefer that? Feel free to change it here or let me know if I should. Let me know if you have any other thoughts. I'd like to merge this and the tests in #23. What we will need to do is move our BAL feature from being on my fork to being a feature branch within EELS: eips/amsterdam/eip-7928 so I want to get our branch updated before creating that.

@nerolation
Copy link
Collaborator

No strong opinion. Let's keep it as-is for now and we could still change the variable name later on.
Ready to go :)

@fselmo fselmo merged commit ac6739a into feat/amsterdam-fork-and-block-access-lists Oct 30, 2025
4 of 10 checks passed
@fselmo fselmo deleted the fix/withdrawals-zero-transfer branch October 30, 2025 13:43
@fselmo
Copy link
Owner Author

fselmo commented Oct 30, 2025

Sounds good. Merged!

fselmo added a commit that referenced this pull request Oct 31, 2025
* fix(specs): Fix zero value withdrawals BAL tracking

* docs(specs): rename 'finalize' to 'normalize' in comments

* docs(specs): remove reference to uint128 for balance tracking

---------

Co-authored-by: Toni Wahrstätter <[email protected]>
Co-authored-by: Toni Wahrstätter <[email protected]>
fselmo added a commit that referenced this pull request Nov 4, 2025
* fix(specs): Fix zero value withdrawals BAL tracking

* docs(specs): rename 'finalize' to 'normalize' in comments

* docs(specs): remove reference to uint128 for balance tracking

---------

Co-authored-by: Toni Wahrstätter <[email protected]>
Co-authored-by: Toni Wahrstätter <[email protected]>
fselmo added a commit that referenced this pull request Nov 4, 2025
* fix(specs): Fix zero value withdrawals BAL tracking

* docs(specs): rename 'finalize' to 'normalize' in comments

* docs(specs): remove reference to uint128 for balance tracking

---------

Co-authored-by: Toni Wahrstätter <[email protected]>
Co-authored-by: Toni Wahrstätter <[email protected]>
fselmo added a commit that referenced this pull request Nov 11, 2025
* fix(specs): Fix zero value withdrawals BAL tracking

* docs(specs): rename 'finalize' to 'normalize' in comments

* docs(specs): remove reference to uint128 for balance tracking

---------

Co-authored-by: Toni Wahrstätter <[email protected]>
Co-authored-by: Toni Wahrstätter <[email protected]>
fselmo added a commit that referenced this pull request Nov 11, 2025
* fix(specs): Fix zero value withdrawals BAL tracking

* docs(specs): rename 'finalize' to 'normalize' in comments

* docs(specs): remove reference to uint128 for balance tracking

---------

Co-authored-by: Toni Wahrstätter <[email protected]>
Co-authored-by: Toni Wahrstätter <[email protected]>
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.

3 participants