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

Abigen fails when foundry-evm is specified as a dependency in Cargo.toml #2646

Closed
llacqie opened this issue Oct 23, 2023 · 0 comments
Closed
Labels
bug Something isn't working

Comments

@llacqie
Copy link

llacqie commented Oct 23, 2023

Version
ethers v2.0.10

Platform
64-bit Windows

Description
Abigen fails when foundry-evm is specified as a dependency in Cargo.toml

Project example: https://github.com/llacqie/ethers_bug_0

Compiling market_maker v0.0.0 (https://github.com/mekosko/market_maker.git#5406254f)
error[E0433]: failed to resolve: could not find `ethers` in the list of imported crates
 --> C:\Users\x\.cargo\git\checkouts\market_maker-a897416530cb5cae\5406254\market_maker\uniswap.rs:5:1
  |
5 | / abigen!(
6 | |     IUniswapV2Factory,
7 | |     "[event PairCreated(address indexed token0, address indexed token1, address pair, uint256)]";
8 | | );
  | |_^ could not find `ethers` in the list of imported crates
  |
  = note: this error originates in the macro `abigen` (in Nightly builds, run with -Z macro-backtrace for more info)

For more information about this error, try `rustc --explain E0433`.
error: could not compile `market_maker` (lib) due to previous error
warning: build failed, waiting for other jobs to finish...
@llacqie llacqie added the bug Something isn't working label Oct 23, 2023
@llacqie llacqie closed this as not planned Won't fix, can't repro, duplicate, stale Oct 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant