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

GeneralStateTests/stMemoryTest/bufferSrcOffset.json test fix #84

Merged
merged 4 commits into from
Feb 2, 2024
Merged

Conversation

cokicm
Copy link

@cokicm cokicm commented Jan 31, 2024

ReturnDataCopy did not treat as error when return address did not have enough space to receive the data, eventually not initiating rollback in a test.

Description

Covering error handling when there is not enough space to receive the data with minor ReturnDataCopy refactoring and writing unit tests.

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

…rcOffset.json to fail.

ReturnDataCopy did not treat as error when return address did not have enough space to receive the data, eventually not initiating rollback in a test.
Copy link

github-actions bot commented Jan 31, 2024

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@cokicm
Copy link
Author

cokicm commented Jan 31, 2024

I have read the CLA Document and I hereby sign the CLA

Stefan-Ethernal
Stefan-Ethernal previously approved these changes Feb 1, 2024
state/runtime/evm/instructions.go Outdated Show resolved Hide resolved
state/runtime/evm/instructions_test.go Outdated Show resolved Hide resolved
Co-authored-by: Stefan Negovanović <93934272+Stefan-Ethernal@users.noreply.github.com>
cokicm and others added 2 commits February 1, 2024 21:05
Co-authored-by: Stefan Negovanović <93934272+Stefan-Ethernal@users.noreply.github.com>
@Stefan-Ethernal Stefan-Ethernal changed the base branch from develop to fix/bufferSrcOffset-evm-test February 2, 2024 09:46
@Stefan-Ethernal Stefan-Ethernal merged commit ad51046 into Ethernal-Tech:fix/bufferSrcOffset-evm-test Feb 2, 2024
4 of 7 checks passed
@Stefan-Ethernal Stefan-Ethernal mentioned this pull request Feb 2, 2024
11 tasks
Stefan-Ethernal added a commit that referenced this pull request Feb 2, 2024
* GeneralStateTests/stMemoryTest/bufferSrcOffset.json test fix (#84)

* Resolving an issue that caused GeneralStateTests/stMemoryTest/bufferSrcOffset.json to fail.

ReturnDataCopy did not treat as error when return address did not have enough space to receive the data, eventually not initiating rollback in a test.

* Update state/runtime/evm/instructions.go

Co-authored-by: Stefan Negovanović <93934272+Stefan-Ethernal@users.noreply.github.com>

* Update state/runtime/evm/instructions_test.go

Co-authored-by: Stefan Negovanović <93934272+Stefan-Ethernal@users.noreply.github.com>

* Fixing typo detected by linter.

---------

Co-authored-by: Stefan Negovanović <93934272+Stefan-Ethernal@users.noreply.github.com>

* Linter fix

---------

Co-authored-by: cokicm <mita.cokic@gmail.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