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

fix(solc): mimic hardhat import resolver when in node_modules #928

Merged
merged 3 commits into from
Feb 18, 2022

Conversation

mattsse
Copy link
Collaborator

@mattsse mattsse commented Feb 18, 2022

Motivation

Closes #906

Solution

check if currently inside node_modules, if so use @openzeppelin rather then @openzeppelin/contracts

PR Checklist

  • Added Tests
  • Added Documentation
  • Updated the changelog

@mattsse mattsse changed the title Matt/node modules auto remappings fix(solc): mimic hardhat import resolver when in node_modules Feb 18, 2022
@mattsse mattsse force-pushed the matt/node-modules-auto-remappings branch from 6e939bf to 84ce71c Compare February 18, 2022 16:22
@gakonst gakonst merged commit 5b2c1fa into gakonst:master Feb 18, 2022
gakonst added a commit to lattejed/foundry that referenced this pull request Feb 18, 2022
gakonst added a commit to foundry-rs/foundry that referenced this pull request Feb 18, 2022
* 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]>
charisma98 added a commit to charisma98/foundry that referenced this pull request Mar 4, 2023
* 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]>
0129general added a commit to 0129general/FoundryProject that referenced this pull request May 8, 2024
* 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]>
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.

Strip trailing /contracts from autodetected remappings inside node_modules folder
2 participants