foundry-rs / book

A book on all things Foundry, available at https://book.getfoundry.sh.
https://book.getfoundry.sh
Apache License 2.0
776 stars 609 forks source link

Missing dependencies section in Soldeer #1252

Closed Braqzen closed 1 month ago

Braqzen commented 1 month ago

Note: I've only read the docs and noticed a discrepancy. I have not verified it. If it's invalid then feel free to close.

In soldeer.md there is a heading Add a Dependency Stored in the Central Repository which contains a toml block. In the block it states that the following line must be added

libs = ["dependencies"] # <= This is important to be added

Scrolling down a little to Updating Dependencies there is a similar toml block and comment. The difference is that the line is missing but the comment is pointing at a different line.

gas_reports = ["*"] # <= This is important to be added

It appears that this may have been a mistake and that line was removed while the comment remained.

Solution: Add the line back in and move the comment.