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

VM/genesis: Fix small genesis API inconsistency #2886

Merged
merged 1 commit into from
Jul 13, 2023

Conversation

holgerd77
Copy link
Member

This PR fixes a small inconsistency with the genesis package API I discovered while writing release notes. So the example I added as a test now would break before, because the getGenesis() API would give either GenesisState or null while the other genesisState input APIs in VM and Blockchain would take GenesisState or undefined.

This didn't play well together on the type level and so the example would break.

PR fixes this.

Copy link
Contributor

@acolytec3 acolytec3 left a comment

Choose a reason for hiding this comment

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

Clean. Lgtm

Copy link
Contributor

@g11tech g11tech left a comment

Choose a reason for hiding this comment

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

lgtm

@codecov
Copy link

codecov bot commented Jul 13, 2023

Codecov Report

Merging #2886 (6053827) into master (b039efe) will increase coverage by 0.00%.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

Flag Coverage Δ
block 88.62% <ø> (ø)
blockchain 92.58% <ø> (ø)
client 87.16% <ø> (ø)
common 97.13% <ø> (ø)
ethash ?
evm 69.86% <ø> (ø)
rlp ∅ <ø> (∅)
statemanager 85.16% <ø> (ø)
trie 90.08% <ø> (+0.04%) ⬆️
tx 95.96% <ø> (ø)
util 87.14% <ø> (ø)
vm 77.87% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

@holgerd77 holgerd77 force-pushed the small-genesis-api-inconsistency branch from 5fbc5c0 to 6053827 Compare July 13, 2023 11:10
@holgerd77 holgerd77 merged commit fc80b2e into master Jul 13, 2023
41 checks passed
@holgerd77 holgerd77 deleted the small-genesis-api-inconsistency branch July 13, 2023 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants