Foundry error when testing #6699
spideyInterface
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone! I am using foundry to test my smart contract however I keep encountering an error that is really annoying me and I cannot seem to find a answer on Google.
The error reads as:
Failed to extract foundry config:
Foundry config error: invalid remapping format, found 'forge-std/-lib/forge-std/src/', expected '=' in Remapping Provider
Here is my foundry.toml file:
[profile.default]
src = "src"
out = "artifacts"
libs = ["lib"]
solc_version = "0.8.23"
optimizer = true
optimizer_runs = 200
remappings = [
"@openzeppelin/=lib/@openzeppelin-contracts/",
"eth-gas-reporter/=node_modules/eth-gas-reporter/",
"hardhat-deploy/=node_modules/hardhat-deploy/",
"hardhat/=node_modules/hardhat/",
"ds-test/=lib/forge-std/lib/ds-test/src/",
"forge-std/=lib/forge-std/src/"
]
See more config options https://github.com/foundry-rs/foundry/blob/master/crates/config/README.md#all-options
Here is my remappings.txt file:
@openzeppelin/=lib/@openzeppelin-contracts/
eth-gas-reporter/=node_modules/eth=gas-reporter/
hardhat-deploy/=node_modules/hardhat-deploy/
hardhat/=node_modules/hardhat/
ds-test/=lib/forge-std/lib/ds-test/src/
forge-std/-lib/forge-std/src/
@openzeppelin/contracts/=lib/openzeppelin=contracts/
openzeppelin-contracts/=lib/openzeppelin-contracts/
I appreciate all the help in advance!
Beta Was this translation helpful? Give feedback.
All reactions