Skip to content

Commit

Permalink
chore: make lint happy
Browse files Browse the repository at this point in the history
Vid201 committed Oct 6, 2023
1 parent d542ad2 commit 22243bb
Showing 3 changed files with 4 additions and 7 deletions.
4 changes: 2 additions & 2 deletions crates/bundler/src/bundler.rs
Original file line number Diff line number Diff line change
@@ -435,11 +435,11 @@ pub(crate) fn generate_flashbots_middleware<M: Middleware + 'static>(

let mut flashbots_middleware = FlashbotsMiddleware::new(
eth_client,
Url::parse(relay_endpoint.clone())?,
Url::parse(relay_endpoint)?,
bundle_signer.clone(),
);
flashbots_middleware.set_simulation_relay(
Url::parse(relay_endpoint.clone()).expect("Failed to parse simulation relay URL"),
Url::parse(relay_endpoint).expect("Failed to parse simulation relay URL"),
bundle_signer.clone(),
);

2 changes: 1 addition & 1 deletion crates/uopool/src/memory/mempool.rs
Original file line number Diff line number Diff line change
@@ -45,7 +45,7 @@ impl Mempool for MemoryMempool {

self.user_operations_by_sender
.entry(uo.sender)
.or_insert_with(Default::default)
.or_default()
.insert(uo_hash);
self.user_operations.insert(uo_hash, uo);

Original file line number Diff line number Diff line change
@@ -47,10 +47,7 @@ impl StorageAccess {

if kecc.starts_with(&addr_b) {
let k = keccak256(kecc.clone());
slots
.entry(entity.address)
.or_insert(HashSet::new())
.insert(k.into());
slots.entry(entity.address).or_default().insert(k.into());
}
}
}

0 comments on commit 22243bb

Please sign in to comment.