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 error traits and ATs #11

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

klkvr
Copy link
Member

@klkvr klkvr commented Feb 7, 2025

Motivation

Extracts some API changes from #7 to make it easier to prototype with reth in scope of paradigmxyz/reth#14021

Solution

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

@klkvr klkvr requested a review from mattsse as a code owner February 7, 2025 00:34
@@ -14,12 +21,17 @@ use revm::{
/// Executing a transaction will return the outcome of the transaction.
pub trait Evm {
/// Database type held by the EVM.
type DB: Database;
type DB;
Copy link
Member

Choose a reason for hiding this comment

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

oh that's kinda nice

Copy link
Member Author

Choose a reason for hiding this comment

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

it's actually just a workaround for weird trait bounds issue :/ we still require DB: Database on EvmFactory

@klkvr
Copy link
Member Author

klkvr commented Feb 7, 2025

ci is failing because current revm feature-gates Error impls behind std so holding this off

@mattsse
Copy link
Member

mattsse commented Feb 7, 2025

since this is a new release basically revm ideally bumps msrv so we can use core

@emhane
Copy link

emhane commented Feb 7, 2025

ci is failing because current revm feature-gates Error impls behind std so holding this off

is it possible to ship a std only version of this first of all, so I can base re-impl of paradigmxyz/reth#14124 on main with paradigmxyz/reth#14021 merged? that way we can work in parallel and be more efficient. alt is there a revm issue for making Error impls no_std compatible?

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.

3 participants