Skip to content

Move state overrides into ethcontract#3671

Merged
MartinquaXD merged 4 commits intomainfrom
move-state-overrides-into-ethcontract
Sep 19, 2025
Merged

Move state overrides into ethcontract#3671
MartinquaXD merged 4 commits intomainfrom
move-state-overrides-into-ethcontract

Conversation

@MartinquaXD
Copy link
Contributor

Description

Adjusts the code base to make use of .call_with_state_overrides that was introduced in cowprotocol/ethcontract-rs#983.

Changes

  • remove StateOverrides types from our code base because they are now in ethcontract-rs
  • replace Arc<dyn CodeSimulating> with Web3
  • use .call_with_state_overrides instead of weird extension trait on web3
  • migrated module declaration from <module>.rs to <module>/mod.rs to be more consistent with the remaining code base

How to test

tests of balance overriding logic should still work

@MartinquaXD MartinquaXD requested a review from a team as a code owner September 18, 2025 07:28
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

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.

LG

@MartinquaXD MartinquaXD enabled auto-merge (squash) September 19, 2025 09:51
@MartinquaXD MartinquaXD merged commit 8ab5c5c into main Sep 19, 2025
17 checks passed
@MartinquaXD MartinquaXD deleted the move-state-overrides-into-ethcontract branch September 19, 2025 10:02
@github-actions github-actions bot locked and limited conversation to collaborators Sep 19, 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.

4 participants