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: add empty state method for tests #10045

Merged
merged 2 commits into from
Aug 5, 2024

Conversation

mvares
Copy link
Contributor

@mvares mvares commented Aug 2, 2024

Follow up #10040

Ref #10040 (comment)

@mvares mvares changed the title feat: add empty state method for test feat: add empty state method for tests Aug 2, 2024
Comment on lines 772 to 774
fn create_empty_state() -> CanonicalInMemoryState {
CanonicalInMemoryState::new(HashMap::new(), BTreeMap::new(), None, None)
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'd like to make this a function of CanonicalInMemoryState itself so you can do CanonicalInMemoryState::empty()

@mattsse mattsse added the C-enhancement New feature or request label Aug 2, 2024
@onbjerg onbjerg requested a review from gakonst as a code owner August 5, 2024 09:31
@onbjerg onbjerg requested a review from mattsse August 5, 2024 09:31
@onbjerg onbjerg enabled auto-merge August 5, 2024 09:31
@onbjerg onbjerg added this pull request to the merge queue Aug 5, 2024
Merged via the queue into paradigmxyz:main with commit f0df06f Aug 5, 2024
33 checks passed
@mvares mvares deleted the follow-up-10040 branch August 5, 2024 11:05
martinezjorge pushed a commit to martinezjorge/reth that referenced this pull request Aug 7, 2024
Co-authored-by: Oliver Nordbjerg <hi@notbjerg.me>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants