Skip to content

Warnings when compiling with new forge #115

@StackOverflowExcept1on

Description

@StackOverflowExcept1on
[⠊] Compiling...
[⠃] Compiling 153 files with Solc 0.8.30
[⠘] Solc 0.8.30 finished in 83.94s
Compiler run successful with warnings:
Warning (2018): Function state mutability can be restricted to pure
  --> lib/openzeppelin-foundry-upgrades/src/internal/StringFinder.sol:15:5:
   |
15 |     function contains(string memory subject, string memory search) internal returns (bool) {
   |     ^ (Relevant source part starts here and spans across multiple lines).

Warning (2018): Function state mutability can be restricted to pure
   --> lib/openzeppelin-foundry-upgrades/src/internal/DefenderDeploy.sol:226:5:
    |
226 |     function _parseLine(
    |     ^ (Relevant source part starts here and spans across multiple lines).

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