-
Notifications
You must be signed in to change notification settings - Fork 0
fix(specs): Fix zero value withdrawals BAL tracking #29
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
fix(specs): Fix zero value withdrawals BAL tracking #29
Conversation
8c6b852 to
9fce100
Compare
|
I'm fine using "normalize", no strong opinion on it, but would "filtering" be more accurate? |
02e6602 to
4b7ec5c
Compare
|
@nerolation I'm good with |
|
No strong opinion. Let's keep it as-is for now and we could still change the variable name later on. |
ac6739a
into
feat/amsterdam-fork-and-block-access-lists
|
Sounds good. Merged! |
* 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]>
* 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]>
* 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]>
* 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]>
* 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]>
What was wrong?
closes #27
How was it fixed?
Make the
finalize_transaction_changesmore generic asnormalize_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
🐇