Skip to content

Conversation

@Fraser999
Copy link
Contributor

@Fraser999 Fraser999 commented Feb 3, 2026

This adds mocks and integration tests for the Filler and the FeePolicySubmitter structs.

I used the ProviderBuilder::connect_mocked_client to construct the MockTxBuilder, and initially included with_gas_estimation and with_simple_nonce_management. However, the internal implementation of the resulting provider means that concurrent calls are made to the mocked client (there are a couple of uses of try_join!) hence making it impossible to reliably prepare the asserter (as it needs a deterministic order of expected RPC calls).

To work around this, I made the MockTxBuilder::fill modify the provided txs to set their nonce and gas fields if not already set, meaning client RPC calls for these are now avoided. I'm not a fan of this, so if there's a better approach I'd be happy to change to that!

Copy link
Contributor Author

Fraser999 commented Feb 3, 2026

This stack of pull requests is managed by Graphite. Learn more about stacking.

@Fraser999 Fraser999 force-pushed the fraser/eng-1741/integration-tests branch from 86ff603 to 9d6d7cb Compare February 3, 2026 01:45
@Fraser999 Fraser999 force-pushed the fraser/eng-1739/filler branch from 728b419 to 43e9260 Compare February 3, 2026 01:45
Base automatically changed from fraser/eng-1739/filler to main February 3, 2026 14:38
@Fraser999 Fraser999 force-pushed the fraser/eng-1741/integration-tests branch from 9d6d7cb to c04762d Compare February 3, 2026 14:39
@Fraser999 Fraser999 marked this pull request as ready for review February 3, 2026 14:39
@Fraser999 Fraser999 requested a review from a team as a code owner February 3, 2026 14:39
@Fraser999 Fraser999 force-pushed the fraser/eng-1741/integration-tests branch from c04762d to f4df347 Compare February 3, 2026 15:57
Copy link
Member

@prestwich prestwich left a comment

Choose a reason for hiding this comment

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

look straightforward.

@Fraser999 Fraser999 merged commit 2d311ba into main Feb 3, 2026
7 checks passed
@Fraser999 Fraser999 deleted the fraser/eng-1741/integration-tests branch February 3, 2026 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants