Skip to content

chore(forge): handle fork instantiating failures more gracefully#5507

Merged
Evalir merged 2 commits intomasterfrom
evalir/make-evm-env-graceful
Jul 31, 2023
Merged

chore(forge): handle fork instantiating failures more gracefully#5507
Evalir merged 2 commits intomasterfrom
evalir/make-evm-env-graceful

Conversation

@Evalir
Copy link
Member

@Evalir Evalir commented Jul 31, 2023

Motivation

A smol leftover from #5503, we could handle these failures more gracefully depending on where they happened.

Solution

Deal with a Result instead of outright panicking

@Evalir Evalir requested a review from mattsse July 31, 2023 13:39
Copy link
Member

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

lgtm

@Evalir Evalir merged commit 42beef0 into master Jul 31, 2023
@Evalir Evalir deleted the evalir/make-evm-env-graceful branch July 31, 2023 16:45
aathan pushed a commit to aathan/foundry that referenced this pull request Aug 2, 2023
…oundry-rs#5507)

* fix: make evm_env() return a result to force more graceful handling of failed forks

* chore: fix related handling errors (and just panic when needed)
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