Skip to content

Conversation

@jmg-duarte
Copy link
Contributor

@jmg-duarte jmg-duarte commented Dec 16, 2025

Description

Migrates the AccessList code from ethcontract to alloy; this has been partially migrated by the previous #3995

Changes

  • Removes the ethcontract::AccessList conversions
  • Replaces the old ethcontract::AccessList usages with alloy

How to test

Existing tests

@jmg-duarte jmg-duarte changed the base branch from main to jmgd/alloy/solver-account December 19, 2025 10:13
@jmg-duarte jmg-duarte changed the title [WIP] AccessList Migrate the AccessList from ethcontract to alloy Dec 19, 2025
Base automatically changed from jmgd/alloy/solver-account to main December 19, 2025 11:48
@jmg-duarte jmg-duarte marked this pull request as ready for review December 19, 2025 11:56
@jmg-duarte jmg-duarte requested a review from a team as a code owner December 19, 2025 11:56
Comment on lines 225 to 231
let tx = match self.simulation_gas_price().await {
Some(gas_price) => {
let gas_price = gas_price.try_into().map_err(|err| {
Error::GasPrice(anyhow!("failed to convert gas_limit to u128: {err:?}"))
})?;

tx.with_gas_price(gas_price)
Copy link
Contributor

Choose a reason for hiding this comment

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

I think there are not many calls to simulation_gas_price. Might be easier to move this error handling into that call already and update the callers accordingly.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done, not 100% sure if the log I left should be debug or warn though

Copy link
Contributor

@squadgazzz squadgazzz left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@m-sz m-sz left a comment

Choose a reason for hiding this comment

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

LGTM

@jmg-duarte jmg-duarte enabled auto-merge December 22, 2025 09:11
@jmg-duarte jmg-duarte added this pull request to the merge queue Dec 22, 2025
Merged via the queue into main with commit ac7f3f7 Dec 22, 2025
19 checks passed
@jmg-duarte jmg-duarte deleted the jmgd/alloy/accesslist branch December 22, 2025 09:33
@github-actions github-actions bot locked and limited conversation to collaborators Dec 22, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants