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: implement DatabaseCommit for DatabaseComponents #1163

Merged
merged 2 commits into from
Mar 7, 2024

Conversation

Wodann
Copy link
Contributor

@Wodann Wodann commented Mar 7, 2024

These implementations were missing when working with a type that implements DatabaseRef instead of Database

@@ -3,13 +3,16 @@ pub mod block_hash;
pub mod state;

pub use block_hash::{BlockHash, BlockHashRef};
use hashbrown::HashMap;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
use hashbrown::HashMap;
use crate::HashMap;

When std is enabled we are using std HashMap so in all places in code we include hashmap as crate::HashMap

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Addressed in 9aca198

@Wodann Wodann requested a review from rakita March 7, 2024 15:24
Copy link
Member

@rakita rakita left a comment

Choose a reason for hiding this comment

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

lgtm

@rakita rakita merged commit f36f90e into bluealloy:main Mar 7, 2024
25 checks passed
@github-actions github-actions bot mentioned this pull request Mar 7, 2024
@Wodann Wodann deleted the feat/db-commit branch March 7, 2024 17:43
fubuloubu pushed a commit to ApeWorX/revm that referenced this pull request Apr 11, 2024
* feat: implement DatabaseCommit for DatabaseComponents

* misc: apply review suggestions
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