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

WEB3-99: feat: add EvmEnvBuilder #215

Merged
merged 6 commits into from
Sep 4, 2024
Merged

WEB3-99: feat: add EvmEnvBuilder #215

merged 6 commits into from
Sep 4, 2024

Conversation

Wollac
Copy link
Contributor

@Wollac Wollac commented Sep 2, 2024

Add the EvmEnvBuilder to simplify the creation of an EvmEnv on the host.
See #204 for more context.

@Wollac Wollac requested review from capossele and a team as code owners September 2, 2024 11:02
@github-actions github-actions bot changed the title feat: add EvmEnvBuilder WEB3-99: feat: add EvmEnvBuilder Sep 2, 2024
@@ -45,8 +45,11 @@ pub(crate) type HostEvmEnv<D, H> = EvmEnv<TraceDb<D>, H>;
impl EthEvmEnv<TraceDb<AlloyDb<Http<Client>, Ethereum, RootProvider<Http<Client>>>>> {
/// Creates a new provable [EvmEnv] for Ethereum from an HTTP RPC endpoint.
pub async fn from_rpc(url: Url, number: BlockNumberOrTag) -> Result<Self> {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should this now redundant function be removed, or at least marked as #[deprecated]?

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe we mark it as deprecated for one release to avoid needless pain to our devs.

Copy link
Contributor Author

@Wollac Wollac Sep 3, 2024

Choose a reason for hiding this comment

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

fixed in 4188638

@Wollac
Copy link
Contributor Author

Wollac commented Sep 2, 2024

supersedes #204

steel/src/host/mod.rs Outdated Show resolved Hide resolved
@Wollac Wollac self-assigned this Sep 3, 2024
@Wollac Wollac enabled auto-merge (squash) September 4, 2024 10:33
@Wollac Wollac merged commit cdd3656 into main Sep 4, 2024
9 checks passed
@Wollac Wollac deleted the feat/env-builder branch September 4, 2024 10:43
nategraf added a commit that referenced this pull request Sep 10, 2024
Add the `EvmEnvBuilder` to simplify the creation of an `EvmEnv` on the
host.
See #204 for more context.

---------

Co-authored-by: Victor Graf <[email protected]>
nategraf added a commit that referenced this pull request Sep 10, 2024
Add the `EvmEnvBuilder` to simplify the creation of an `EvmEnv` on the
host.
See #204 for more context.

---------

Co-authored-by: Victor Graf <[email protected]>
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.

4 participants