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

feat: replacing the map types (#1365) #1368

Closed

Conversation

dhruvmalik007
Copy link
Contributor

  • replacing the HashMap and HashSet from the std::collections to the alloy-primitives along with setting up the cargo file.

  • setting the dependencies in the cargo files

  • [ ]Bug fixes and new features should include tests: TBD.

Motivation

to close the PR #1365 .

Solution

migrating the types as defined in the given issue.

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

- replacing the HashMap and HashSet from the std::collections to the alloy-primitives along with setting up the cargo file.

- setting the dependencies in the cargo files
Copy link
Member

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

needs closer look by @DaniPopes

crates/rpc-types-eth/src/lib.rs Outdated Show resolved Hide resolved
@@ -30,6 +30,7 @@ alloy-rpc-types-mev = { workspace = true, optional = true }
alloy-rpc-types-trace = { workspace = true, optional = true }
alloy-rpc-types-txpool = { workspace = true, optional = true }
serde = { workspace = true, features = ["derive", "std"] }
alloy-primitives = { version = "0.8.5", features = ["map"] }
Copy link
Member

Choose a reason for hiding this comment

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

this should use workspace

Comment on lines +30 to +32
let mut module_map: HashMap<String, String> = HashMap::default(); // Change to FxHashMap

module_map.extend([
Copy link
Member

Choose a reason for hiding this comment

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

this should use from_iter

@DaniPopes
Copy link
Member

Hey, unfortunately needed to take over this PR to get this over the line ASAP. I've added you as a co-author in #1384, sorry about this!

@DaniPopes DaniPopes closed this Sep 26, 2024
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