Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

fix: return exactly 32 bytes from eth_getStorageAt #3527

Merged
merged 2 commits into from
Aug 22, 2022

Conversation

davidmurdoch
Copy link
Member

@davidmurdoch davidmurdoch commented Aug 11, 2022

eth_getStorageAt was returning compact representations of data, e.g., "0x5" instead of "0x0000000000000000000000000000000000000000000000000000000000000005". We now always return the padded whole 32 byte word.

Fixes #3526

@MicaiahReid MicaiahReid mentioned this pull request Aug 16, 2022
2 tasks
Copy link
Contributor

@tenthirtyone tenthirtyone left a comment

Choose a reason for hiding this comment

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

Agree with @jeffsmale90 about a const for word length somewhere.

@MicaiahReid
Copy link
Contributor

Agree with @jeffsmale90 about a const for word length somewhere.

By the way, I've made issue #3542 for this so we don't have to hold this up.

Copy link
Contributor

@jeffsmale90 jeffsmale90 left a comment

Choose a reason for hiding this comment

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

Boom!

@davidmurdoch davidmurdoch merged commit dcb0391 into develop Aug 22, 2022
@davidmurdoch davidmurdoch deleted the fix-getStorageAtDataSize branch August 22, 2022 22:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Leading zeros are trimmed in getStorageAt result
4 participants