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

Adding hash check for empty hash when configured #108

Merged
merged 3 commits into from
Feb 15, 2024
Merged

Adding hash check for empty hash when configured #108

merged 3 commits into from
Feb 15, 2024

Conversation

cokicm
Copy link

@cokicm cokicm commented Feb 8, 2024

Fixing transactionCollidingWithNonEmptyAccount_init and transactionCollidingWithNonEmptyAccount_calls tests by checking validity.

Description

When executing transactionCollidingWithNonEmptyAccount_init and transactionCollidingWithNonEmptyAccount_calls account tests, hashes were not validated. This push requests adds hash validation to check for empty object hash and stop transaction application in that case.

Changes include

  • Bugfix (non-breaking change that solves an issue)
  • Hotfix (change that solves an urgent issue, and requires immediate attention)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (change that is not backwards-compatible and/or changes current functionality)

Checklist

  • I have assigned this PR to myself
  • I have added at least 1 reviewer
  • I have added the relevant labels
  • I have updated the official documentation
  • I have added sufficient documentation in code

Testing

  • I have tested this code with the official test suite
  • I have tested this code manually

…llidingWithNonEmptyAccount_calls tests by checking validity.
Copy link

@Stefan-Ethernal Stefan-Ethernal left a comment

Choose a reason for hiding this comment

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

Overall LGTM, just adding a comment to consider.

types/transaction.go Show resolved Hide resolved
state/executor.go Outdated Show resolved Hide resolved
cokicm and others added 2 commits February 9, 2024 16:19
Co-authored-by: Goran Rojovic <100121253+goran-ethernal@users.noreply.github.com>
@Stefan-Ethernal Stefan-Ethernal changed the base branch from develop to feat/eip-3607 February 15, 2024 09:00
@Stefan-Ethernal Stefan-Ethernal merged commit d520e9c into Ethernal-Tech:feat/eip-3607 Feb 15, 2024
7 of 9 checks passed
Stefan-Ethernal added a commit that referenced this pull request Feb 15, 2024
* Adding hash check for empty hash when configured  (#108)

* Fixing transactionCollidingWithNonEmptyAccount_init and transactionCollidingWithNonEmptyAccount_calls tests by checking validity.

* Update state/executor.go

Co-authored-by: Goran Rojovic <100121253+goran-ethernal@users.noreply.github.com>

---------

Co-authored-by: Goran Rojovic <100121253+goran-ethernal@users.noreply.github.com>
Co-authored-by: Stefan Negovanović <93934272+Stefan-Ethernal@users.noreply.github.com>

* Configurable EIP3607 check

---------

Co-authored-by: cokicm <mita.cokic@gmail.com>
Co-authored-by: Goran Rojovic <100121253+goran-ethernal@users.noreply.github.com>
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