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(test-utils): Make MockEthProvider generic over Transaction #13853

Conversation

Dhanraj30
Copy link
Contributor

detail: #13835

This change makes MockEthProvider more flexible and allows it to be used with different types of transactions, such as OpSignedTransaction.

@@ -42,7 +42,7 @@ use std::{

/// A mock implementation for Provider interfaces.
#[derive(Debug, Clone)]
pub struct MockEthProvider {
pub struct MockEthProvider<T = TransactionSigned> {
Copy link
Collaborator

Choose a reason for hiding this comment

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

this alone doesn't do much yet,

could we maybe relax the impls as well and use this tx type in Blocks?

perhaps a better generic would actually be B: Block

Copy link
Collaborator

@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.

I think we can now relax the impl block on L107 as well

Copy link
Collaborator

@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.

decent start

@mattsse mattsse enabled auto-merge January 22, 2025 22:57
@mattsse mattsse added the C-test A change that impacts how or what we test label Jan 22, 2025
@mattsse mattsse added this pull request to the merge queue Jan 22, 2025
Merged via the queue into paradigmxyz:main with commit cc8558f Jan 22, 2025
43 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-test A change that impacts how or what we test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants