$ forge test
[⠢] Compiling...
[⠒] Compiling 110 files with 0.8.25
[⠢] Solc 0.8.25 finished in 753.71ms
Error:
Compiler run failed:
(skip)
Error (8961): Function cannot be declared as view because this expression (potentially) modifies the state.
--> lib/mc/devkit/utils/ForgeHelper.sol:27:16:
|
27 | return vm.envOr(envKey, address(0));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error (8961): Function cannot be declared as view because this expression (potentially) modifies the state.
--> lib/mc/devkit/utils/ForgeHelper.sol:32:13:
|
32 | if (vm.envOr(envKey, address(0)).code.length != 0) return true;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error (8961): Function cannot be declared as view because this expression (potentially) modifies the state.
--> lib/mc/devkit/utils/ForgeHelper.sol:59:16:
|
59 | return vm.getLabel(addr);
| ^^^^^^^^^^^^^^^^^
(skip)
Error (8961): Function cannot be declared as view because this expression (potentially) modifies the state.
--> lib/mc/devkit/MCBase.sol:30:16:
|
30 | return vm.envOr(keyword, addr);
| ^^^^^^^^^^^^^^^^^^^^^^^
Just removing view and it will be fixed.