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

Test and handle side effects of ProviderConfig::genesis_state #756

Open
Wodann opened this issue Dec 19, 2024 · 0 comments
Open

Test and handle side effects of ProviderConfig::genesis_state #756

Wodann opened this issue Dec 19, 2024 · 0 comments

Comments

@Wodann
Copy link
Member

Wodann commented Dec 19, 2024

In #755 we added support for setting a "genesis state" for a blockchain. This can have one of two effects:

  • For a local blockchain, it sets the genesis state
  • For a forked blockchain, it overwrites the forked state

The former is always safe, but the latter might introduce unexpected side-effects when incorrectly overwriting accounts or storage. We should add tests to make sure we're gracefully handling those error states.

Definition of Done

  • Full branch coverage for usage of the genesis_state in the construction of ForkedBlockchain (in the provider data)
@Wodann Wodann added this to EDR Dec 19, 2024
@github-project-automation github-project-automation bot moved this to Unconfirmed in EDR Dec 19, 2024
@Wodann Wodann moved this from Unconfirmed to Todo in EDR Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

1 participant