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

WEB3-146: Replace map types with alloy_primitives::map #256

Merged
merged 2 commits into from
Sep 27, 2024
Merged

Conversation

Wollac
Copy link
Contributor

@Wollac Wollac commented Sep 27, 2024

This fixes the current compilation errors.

Previously, we used to use revm::primitives::HashMap to have the same hash in Steel and revm. However, with the latest (minor) revm version, this has been switched to using alloy_primitves::map::HashMap. Thus, in this PR we also replace all {Hash,BTree}{Map,Set} with their more performant and specific equivalent in alloy_primitives::map.

Additional context

@github-actions github-actions bot changed the title fix: use std::collections::HashMap WEB3-146: fix: use std::collections::HashMap Sep 27, 2024
@Wollac Wollac changed the title WEB3-146: fix: use std::collections::HashMap WEB3-146: Replace map types with alloy_primitives::map Sep 27, 2024
@nategraf nategraf merged commit 434e7b3 into main Sep 27, 2024
14 checks passed
@nategraf nategraf deleted the fix/hashmap branch September 27, 2024 21:50
Wollac added a commit that referenced this pull request Oct 1, 2024
This fixes the current compilation errors.

Previously, we used to use `revm::primitives::HashMap` to have the same
hash in Steel and `revm`. However, with the latest (minor) revm version,
this has been switched to using `alloy_primitves::map::HashMap`. Thus,
in this PR we also replace all `{Hash,BTree}{Map,Set}` with their more
performant and specific equivalent in `alloy_primitives::map`.

### Additional context
- alloy-rs/alloy#1365
Wollac added a commit that referenced this pull request Oct 7, 2024
This fixes the current compilation errors.

Previously, we used to use `revm::primitives::HashMap` to have the same
hash in Steel and `revm`. However, with the latest (minor) revm version,
this has been switched to using `alloy_primitves::map::HashMap`. Thus,
in this PR we also replace all `{Hash,BTree}{Map,Set}` with their more
performant and specific equivalent in `alloy_primitives::map`.

### Additional context
- alloy-rs/alloy#1365
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