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

EVM: return just the bytecode hash #1015

Merged
merged 3 commits into from
Jan 12, 2023
Merged

EVM: return just the bytecode hash #1015

merged 3 commits into from
Jan 12, 2023

Conversation

Stebalien
Copy link
Member

Previously, we returned a multihash. However, this got serialized as a map.

Now, we just return the raw digest encoded as 32 bytes.

@Stebalien Stebalien requested a review from mriise January 11, 2023 21:52
Previously, we returned a multihash. However, this got serialized as a map.

Now, we just return the raw digest encoded as 32 bytes.
We've shaved quite a few bytes off by correctly serializing this.
@Stebalien
Copy link
Member Author

Ignore the second commit, that's just updating the storage sizes.

We need to return the digest, not the encoded multihash. This only
affects the tests.
actors/evm/src/state.rs Show resolved Hide resolved
actors/evm/src/lib.rs Show resolved Hide resolved
@Stebalien Stebalien enabled auto-merge (squash) January 11, 2023 23:59
@Stebalien Stebalien merged commit 9191eb3 into next Jan 12, 2023
@Stebalien Stebalien deleted the steb/bytecode-hash branch January 12, 2023 00:14
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