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

fix(abigen): pin bindings to latest crate version #2272

Closed
wants to merge 1 commit into from

Conversation

DaniPopes
Copy link
Collaborator

Motivation

refs #2271
we should be switching off of git deps for downstream too anyway

Solution

PR Checklist

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

@gakonst
Copy link
Owner

gakonst commented Mar 16, 2023

Will this still generate a binding that depends on git if there's another crate around? Should we makeforge bind take a --version or --git argument to make this user-configured instead of trying to guess ourselves for all cases?

Comment on lines +16 to +20
const DEFAULT_ETHERS_DEP: &str = concat!(
"ethers = { version = \"",
env!("CARGO_PKG_VERSION"),
"\", default-features = false, features = [\"abigen\"] }"
);
Copy link
Collaborator

@mattsse mattsse Mar 16, 2023

Choose a reason for hiding this comment

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

this will cause issues with foundry because foundry uses ethers master to generate bindings that then depend on crates.

so until we use ethers from crates in foundry, I recommend against this.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

makes sense, closing until then

@DaniPopes DaniPopes closed this Mar 16, 2023
@DaniPopes DaniPopes deleted the fix/pin-bindings branch April 24, 2023 14:06
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.

3 participants