Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

refactor: move fill_transaction impl to provider rather than default #697

Merged
merged 2 commits into from
Dec 15, 2021

Conversation

prestwich
Copy link
Collaborator

@prestwich prestwich commented Dec 15, 2021

Motivation

See #696

Solution

Implement suggestion 3 from the issue. Move the implementation of fill_transaction to the provider, the most-deeply-nested middleware. Change the default impl to simply delegate further within the middleware stack. Middleware that need to modify behavior may do so by delegating before or after modification.

PR Checklist

  • Added Tests
  • Added Documentation
  • Updated the changelog

@prestwich prestwich added enhancement New feature or request rust Pull requests that update Rust code labels Dec 15, 2021
@prestwich prestwich self-assigned this Dec 15, 2021
@prestwich prestwich marked this pull request as ready for review December 15, 2021 21:54
@gakonst gakonst merged commit 060dd60 into master Dec 15, 2021
@gakonst gakonst deleted the prestwich/delegate-fill-tx branch December 15, 2021 23:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request rust Pull requests that update Rust code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants