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

refactor: use expanded EthEvent impl #1499

Merged
merged 1 commit into from
Jul 24, 2022

Conversation

mattsse
Copy link
Collaborator

@mattsse mattsse commented Jul 21, 2022

Motivation

for some reason, when used with rust-analyzer, RA expands the crate that's using ethers from another path which leads to wrong crate imports ethers_core instead of ethers::core. This happens only inside of RA and does not affect cargo build but has an effect on intellisense etc...

This issue appears to be due to usage of EthEvent derive in ethers-middleware, using the expanded code for the event makes RA happy...

Closes #1205
Closes #940

Solution

use expanded code instead of using derive macro

PR Checklist

  • Added Tests
  • Added Documentation
  • Updated the changelog

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.

reasonable - nice find

@gakonst gakonst merged commit 83e2684 into gakonst:master Jul 24, 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.

error: no module named ethers when vendor compiling ethers-middleware rust-analyzer complains on abigen!
2 participants