Skip to content

Commit

Permalink
chore: fixing PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
dancoombs committed Mar 30, 2024
1 parent 3760c7c commit 88a96ae
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 17 deletions.
14 changes: 7 additions & 7 deletions crates/builder/src/bundle_proposer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ pub(crate) trait BundleProposer: Send + Sync + 'static {
}

#[derive(Debug)]
pub(crate) struct BundleProposerImpl<UO, S, E, P, C> {
pub(crate) struct BundleProposerImpl<UO, S, E, P, M> {
builder_index: u64,
pool: C,
pool: M,
simulator: S,
entry_point: E,
provider: Arc<P>,
Expand All @@ -128,14 +128,14 @@ pub(crate) struct Settings {
}

#[async_trait]
impl<UO, S, E, P, C> BundleProposer for BundleProposerImpl<UO, S, E, P, C>
impl<UO, S, E, P, M> BundleProposer for BundleProposerImpl<UO, S, E, P, M>
where
UO: UserOperation + From<UserOperationVariant>,
UserOperationVariant: AsRef<UO>,
S: Simulator<UO = UO>,
E: EntryPoint + SignatureAggregator<UO = UO> + BundleHandler<UO = UO> + L1GasProvider<UO = UO>,
P: Provider,
C: Pool,
M: Pool,
{
type UO = UO;

Expand Down Expand Up @@ -234,18 +234,18 @@ where
}
}

impl<UO, S, E, P, C> BundleProposerImpl<UO, S, E, P, C>
impl<UO, S, E, P, M> BundleProposerImpl<UO, S, E, P, M>
where
UO: UserOperation + From<UserOperationVariant>,
UserOperationVariant: AsRef<UO>,
S: Simulator<UO = UO>,
E: EntryPoint + SignatureAggregator<UO = UO> + BundleHandler<UO = UO> + L1GasProvider<UO = UO>,
P: Provider,
C: Pool,
M: Pool,
{
pub(crate) fn new(
builder_index: u64,
pool: C,
pool: M,
simulator: S,
entry_point: E,
provider: Arc<P>,
Expand Down
11 changes: 1 addition & 10 deletions crates/types/src/pool/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,14 @@ use crate::{
};

/// The new head of the chain, as viewed by the pool
#[derive(Clone, Debug)]
#[derive(Clone, Debug, Default)]
pub struct NewHead {
/// The hash of the new head
pub block_hash: H256,
/// The number of the new head
pub block_number: u64,
}

impl Default for NewHead {
fn default() -> NewHead {
NewHead {
block_hash: H256::zero(),
block_number: 0,
}
}
}

/// The reputation of an entity
#[derive(Debug, Clone)]
pub struct Reputation {
Expand Down

0 comments on commit 88a96ae

Please sign in to comment.