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

Fix the size of return value by eth_getStorageAt #227

Merged
merged 1 commit into from
Oct 25, 2022

Conversation

DarianShawn
Copy link
Collaborator

Description

This PR makes eth_getStorageAt return 32 bytes data for any set storage.
For example, eth_getStorageAt in current Edge returns 4 bytes data for the storage where 2 uint16 values are stored. But other EVM chain always returns 32 bytes.

This PR is merging from PolygonEdge PR 744

Changes include

  • Bugfix (non-breaking change that solves an issue)

Testing

  • I have tested this code with the official test suite

@DarianShawn DarianShawn added the bug fix Functionality that fixes a bug label Oct 25, 2022
@DarianShawn DarianShawn self-assigned this Oct 25, 2022
@abrahamcruise321 abrahamcruise321 changed the base branch from dev to hardfork/pos October 25, 2022 10:15
Copy link
Collaborator

@abrahamcruise321 abrahamcruise321 left a comment

Choose a reason for hiding this comment

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

LGTM.

@abrahamcruise321 abrahamcruise321 merged commit ebe51d2 into hardfork/pos Oct 25, 2022
@abrahamcruise321 abrahamcruise321 deleted the fix-getstorageat-not-return-32bytes branch October 25, 2022 10:16
@github-actions github-actions bot locked and limited conversation to collaborators Oct 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug fix Functionality that fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants