Last Man Standing

First Flight #45
Beginner FriendlyFoundrySolidity
100 EXP
View results
Submission Details
Impact: low
Likelihood: low
Invalid

[I-2] Missing `remmappings` values in `foundry.toml` configuration file for better maintainability.

Root + Impact

[I-2] Missing remmappings values in foundry.toml configuration file for better maintainability.

Description

The remappings values in the foundry.toml configuration file should include all the remappings needed for better maintainability and readability of the codebase. This will help in reducing the chances of errors and making it easier for other developers to understand the project.

Although it contains the remappings.txt file, it should be included in the foundry.toml configuration file as well.

Risk

Likelihood: Low

Impact: Low

Proof of Concept

This is the actual foundry.toml configuration file, which does not contain any remappings.

[profile.default]
src = "src"
out = "out"
libs = ["lib"]
# See more config options https://github.com/foundry-rs/foundry/blob/master/crates/config/README.md#all-options

Recommended Mitigation

Add all the remappings needed to the foundry.toml configuration file.

Short example for the remappings used on the project.

[profile.default]
src = "src"
out = "out"
libs = ["lib"]
+ remappings = [
+ "@openzeppelin/=lib/openzeppelin-contracts/"
+ ]
# See more config options https://github.com/foundry-rs/foundry/blob/master/crates/config/README.md#all-options
Updates

Appeal created

inallhonesty Lead Judge about 1 month ago
Submission Judgement Published
Invalidated
Reason: Out of scope

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.