Skip to content

Commit

Permalink
fix: use non problematic hashmap fns (#853)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Nov 28, 2024
1 parent 213bae5 commit 5f6914f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/host/src/fetcher/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ where
.await
.map_err(|e| anyhow!("Failed to fetch preimage: {e}"))?;

let mut merged = HashMap::<B256, Bytes>::new();
let mut merged = HashMap::<B256, Bytes>::default();
merged.extend(execute_payload_response.state);
merged.extend(execute_payload_response.codes);
merged.extend(execute_payload_response.keys);
Expand Down
2 changes: 1 addition & 1 deletion crates/executor/src/syscalls/canyon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ where
revm_acc.mark_touch();

// Commit the create2 deployer account to the database.
db.commit(HashMap::from([(CREATE_2_DEPLOYER_ADDR, revm_acc)]));
db.commit(HashMap::from_iter([(CREATE_2_DEPLOYER_ADDR, revm_acc)]));
return Ok(());
}

Expand Down

0 comments on commit 5f6914f

Please sign in to comment.