-
Notifications
You must be signed in to change notification settings - Fork 794
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is great,
before we can merge this:
- needs a companion on foundry as this breaks, so we can merge both at once
- some derives
ethers-solc/src/artifact_output.rs
Outdated
@@ -15,6 +15,36 @@ use std::{ | |||
path::{Path, PathBuf}, | |||
}; | |||
|
|||
/// Represents unique artifact metadata for identifying artifacts on output | |||
#[derive(Debug, Clone)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also needs PartialEq Eq Hash so we can use them as keys
@mattsse I'm adding a multi-version compile test to this for adding versioned linking. I've found an issue in |
Worth pointing out that I'm not sure this is a regression since the same branch works ok with foundry locally. Possibly a config issue? I'm pretty sure I've dealt with those already tho. |
Good catch, you probably found an existing issue. But I think we can go ahead with it anyway? so let's ignore the what's missing to complete foundry-rs/foundry#662 ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm. issue seems unrelated, i ignored the failing test, fixed fmt'ing and fixed the remaining failing tests. let's get this over the line so we merge the foundry PR, and we can follow up with
- Making Project accept filters
- Fix the linking stuff
* Added test_path method to TestFilter * Added path regex to test interface * Added source path filtering to MultiContractRunner * Updated test Filter and reorganiezed test_helpers * Updated tests to use new filter * Fixed test filter * Use new into_artifacts * Path filtering requires absolute path * Formatting * Fixed warnings * Minor refactoring * Minor refactoring * Bumped semver to 1.0.5 for dev compatibility with ethers-rs * Added passing test for foundry_utils::link * Renamed test * chore: bump ethers for latest artifacts update gakonst/ethers-rs#882 driveby fixes: gakonst/ethers-rs#930 gakonst/ethers-rs#928 Co-authored-by: Georgios Konstantopoulos <[email protected]>
* Added test_path method to TestFilter * Added path regex to test interface * Added source path filtering to MultiContractRunner * Updated test Filter and reorganiezed test_helpers * Updated tests to use new filter * Fixed test filter * Use new into_artifacts * Path filtering requires absolute path * Formatting * Fixed warnings * Minor refactoring * Minor refactoring * Bumped semver to 1.0.5 for dev compatibility with ethers-rs * Added passing test for foundry_utils::link * Renamed test * chore: bump ethers for latest artifacts update gakonst/ethers-rs#882 driveby fixes: gakonst/ethers-rs#930 gakonst/ethers-rs#928 Co-authored-by: Georgios Konstantopoulos <[email protected]>
* Added test_path method to TestFilter * Added path regex to test interface * Added source path filtering to MultiContractRunner * Updated test Filter and reorganiezed test_helpers * Updated tests to use new filter * Fixed test filter * Use new into_artifacts * Path filtering requires absolute path * Formatting * Fixed warnings * Minor refactoring * Minor refactoring * Bumped semver to 1.0.5 for dev compatibility with ethers-rs * Added passing test for foundry_utils::link * Renamed test * chore: bump ethers for latest artifacts update gakonst/ethers-rs#882 driveby fixes: gakonst/ethers-rs#930 gakonst/ethers-rs#928 Co-authored-by: Georgios Konstantopoulos <[email protected]>
@mattsse this is related to foundry-rs/foundry#662
This just adds in an
ArtifactId
and hasinto_artifacts
return it.I think this warrants ongoing discussion, but I've continued that in the PR linked above.
(There are some unrelated warnings and errors here that I've left alone)
PR Checklist