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

Refactor factories to use Borrow<M> #2103

Merged
merged 3 commits into from
Feb 7, 2023
Merged

Conversation

prestwich
Copy link
Collaborator

@prestwich prestwich commented Feb 1, 2023

Depends on #2082

Motivation

  • Continue refactoring types that take Arc<M> to take B: Borrow<M> instead.
  • Provide backwards-compatible aliases

Solution

  • Refactor ethers_contracts::factory module to be abstract over B
  • provide type aliases

PR Checklist

  • Added Tests
  • Added Documentation
  • Updated the changelog
  • Breaking changes

@prestwich prestwich added enhancement New feature or request rust Pull requests that update Rust code labels Feb 1, 2023
@prestwich prestwich self-assigned this Feb 1, 2023
@prestwich prestwich marked this pull request as ready for review February 7, 2023 18:07
@gakonst gakonst merged commit 2607c67 into master Feb 7, 2023
@gakonst gakonst deleted the prestwich/borrow-factory branch February 7, 2023 18:51
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