Skip to content

Confusion in docs with assumeNoPrecompiles vs assumeNotPrecompile #1758

@CJ42

Description

@CJ42

There is a confusion in the docs for this helper function.

The sidebar menu states assumeNoPrecompiles (No + "Precompiles" plural), but the title and the function documented in the page states assumeNotPrecompile (Not + "Precompile" singular).

Image

When I write my tests with forge v1.5.0, the function that works is assumeNoPrecompiles ✅, not assumeNotPrecompile ❌ (the one in the title). This seems confusing to me and I think this is an error in the documentation.

Image Image

I was about to make a PR, but I noticed there are multiple occurences in the Foundry repo + the docs repo where assumeNotPrecompile is mentioned everywhere in some tests. So wanting to check first.

https://github.com/search?q=repo%3Afoundry-rs%2Ffoundry+assumeNotPrecompile&type=code

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions