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

fix(core): more sophisticated crate detection #1056

Merged

Conversation

mattsse
Copy link
Collaborator

@mattsse mattsse commented Mar 17, 2022

Motivation

Closes #1055

Solution

Improve crate detection, and make ethers:: the fallback if ethers-core, ethers-contract, ethers-providers are not present

This also includes some checks in order to make it work in RA, because somehow RA ends up expanding abigen! while being in the ethers-middleware crate's directory...

PR Checklist

  • Added Tests
  • Added Documentation
  • Updated the changelog

@mattsse
Copy link
Collaborator Author

mattsse commented Mar 17, 2022

the RA fix breaks ethers-middleware I'm afraid...
needs some additional work

Copy link
Owner

@gakonst gakonst left a comment

Choose a reason for hiding this comment

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

LGTM - RA such a pain at this point to integrate with this :(

@gakonst gakonst merged commit 2af28be into gakonst:master Mar 17, 2022
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.

abigen mistakenly uses ethers_core instead of ethers
2 participants