Skip to content

Commit

Permalink
ef tests fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hashcashier committed Jan 6, 2025
1 parent 56e89d8 commit 48a221c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions testing/ef-tests/src/driver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,9 @@ impl CoreDriver for TestCoreDriver {
}
}

impl BlockBuilder<Ethereum, MemoryDB, TestCoreDriver, RethPreflightDriver> for RethBlockBuilder {
impl BlockBuilder<'_, Ethereum, MemoryDB, TestCoreDriver, RethPreflightDriver>
for RethBlockBuilder
{
type PreflightClient = RethPreflightClient;
type StatelessClient = RethStatelessClient;
}
Expand All @@ -128,7 +130,7 @@ impl PreflightClient<Ethereum, TestCoreDriver, RethPreflightDriver> for RethPref
type Execution = RethExecutionStrategy;
}

impl StatelessClient<TestCoreDriver, MemoryDB> for RethStatelessClient {
impl StatelessClient<'_, TestCoreDriver, MemoryDB> for RethStatelessClient {
type Initialization = MemoryDbInitializationStrategy;
type Validation = RethValidationStrategy;
type Execution = RethExecutionStrategy;
Expand Down
2 changes: 1 addition & 1 deletion testing/ef-tests/tests/evm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ fn evm(

fn run<R>(provider: Rc<RefCell<dyn Provider<Ethereum>>>, expected_hash: BlockHash)
where
R: BlockBuilder<Ethereum, MemoryDB, TestCoreDriver, RethPreflightDriver>,
R: BlockBuilder<'static, Ethereum, MemoryDB, TestCoreDriver, RethPreflightDriver>,
{
let preflight_data = R::PreflightClient::preflight_with_provider(provider.clone(), 1, 1)
.expect("Preflight failed");
Expand Down

0 comments on commit 48a221c

Please sign in to comment.