openzeppelin-foundry-upgrades icon indicating copy to clipboard operation
openzeppelin-foundry-upgrades copied to clipboard

Warnings when compiling with new forge

Open StackOverflowExcept1on opened this issue 2 months ago • 0 comments

[⠊] 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).

StackOverflowExcept1on avatar Nov 03 '25 10:11 StackOverflowExcept1on