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

cleanups #477

Merged
merged 1 commit into from
Aug 26, 2024
Merged

cleanups #477

merged 1 commit into from
Aug 26, 2024

Conversation

jsign
Copy link
Collaborator

@jsign jsign commented Aug 26, 2024

No description provided.

Signed-off-by: Ignacio Hagopian <[email protected]>
@@ -128,10 +128,6 @@ func (t *VerkleTrie) GetAccount(addr common.Address) (*types.StateAccount, error
return nil, nil
}

if len(values[utils.BasicDataLeafKey]) > 0 {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Considering the code right above, this if can't be false (i.e !emptyAccount).
Another way to see it is looking at L144. For the balance we didn't do this check either.

@jsign jsign marked this pull request as ready for review August 26, 2024 19:28
@jsign jsign requested a review from gballet August 26, 2024 19:28
@@ -131,11 +131,8 @@ func (aw *AccessWitness) TouchTxOriginAndComputeGas(originAddr []byte) uint64 {
}

func (aw *AccessWitness) TouchTxExistingAndComputeGas(targetAddr []byte, sendsValue bool) uint64 {
aw.touchAddressAndChargeGas(targetAddr, zeroTreeIndex, utils.BasicDataLeafKey, false)
Copy link
Owner

Choose a reason for hiding this comment

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

actually I'm thinking we should set it to true because this isn't charged, it's just covered by the 21000 gas you pay for the tx.

Copy link
Owner

Choose a reason for hiding this comment

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

ah nvm, it was specified as such.

@gballet gballet merged commit bfd7b5e into kaustinen-with-shapella Aug 26, 2024
9 of 10 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