Skip to content

Commit

Permalink
fix: fastlane and storage map
Browse files Browse the repository at this point in the history
  • Loading branch information
Vid201 committed Nov 1, 2024
1 parent c51c7f1 commit 88a5a94
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
8 changes: 2 additions & 6 deletions crates/bundler/src/fastlane.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,8 @@ where
let mut options = ConditionalOptions { known_accounts, ..Default::default() };

if let Some(block) = block {
if let Some(block_number) = block.number {
options.block_number_min = Some(block_number.into());
options.block_number_max = Some((block_number + 100).into()); // around 10 minutes
options.timestamp_min = Some(block.timestamp.as_u64());
options.timestamp_max = Some(block.timestamp.as_u64() + 420); // around 15 minutes
}
options.timestamp_min = Some(block.timestamp.as_u64());
options.timestamp_max = Some(block.timestamp.as_u64() + 420); // around 15 minutes
}

let tx =
Expand Down
4 changes: 3 additions & 1 deletion crates/mempool/src/validate/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ pub fn extract_storage_map(js_trace: &JsTracerFrame) -> StorageMap {

for l in js_trace.calls_from_entry_point.iter() {
for (addr, acc) in l.access.iter() {
storage_map.slots.insert(*addr, acc.reads.clone());
if !storage_map.slots.contains_key(addr) {
storage_map.slots.insert(*addr, acc.reads.clone());
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion crates/primitives/src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ pub mod flashbots_relay_endpoints {
/// Fastlane relay endpoints
pub mod fastlane_relay_endpoints {
// polygon
pub const FASTLANE_POLYGON: &str = "https://polygon-test-rpc.fastlane.xyz";
pub const FASTLANE_POLYGON: &str = "https://polygon-rpc.fastlane.xyz/";
}

/// Supported chains
Expand Down

0 comments on commit 88a5a94

Please sign in to comment.