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

expose hashbrown::HashMap in primitives #345

Merged
merged 3 commits into from
Jan 26, 2023
Merged

Conversation

andy-thomason
Copy link
Contributor

Issue: #344

EVM::transact returns ResultAndState which contains type State = HashMap<B160, Account>;

State is internal to revm and requires hashbrown to form the type in user-called code.

Likewise, Account contains:

    pub storage: HashMap<U256, StorageSlot>,

By exposing HashMap in primitives it provides user the ability to use this type independently and insulates them from changes to the type.

@rakita rakita merged commit 142a1c9 into bluealloy:main Jan 26, 2023
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