Cyfrin / foundry-devops

426 stars 53 forks source link

in README.md chage forge-std@v1.7.0 to forge-std@v1.8.0 #21

Closed snowieoxs closed 5 months ago

snowieoxs commented 5 months ago

In the README.md changed the line:

forge install foundry-rs/forge-std@v1.7.0 --no-commit

to version 1.8.0

forge install foundry-rs/forge-std@v1.8.0 --no-commit

after installing and running forge build

forge build
[⠒] Compiling...
[⠆] Compiling 19 files with 0.8.25
[⠰] Solc 0.8.25 finished in 1.06s
Error: 
Compiler run failed:
Error (9582): Member "keyExistsJson" not found or not visible after argument-dependent lookup in contract Vm.
  --> lib/foundry-devops/src/DevOpsTools.sol:72:29:
   |
72 |         for (uint256 i = 0; vm.keyExistsJson(json, string.concat("$.transactions[", vm.toString(i), "]")); i++) {
   | 

found the fix here https://github.com/foundry-rs/foundry/issues/7602

After updating forge-std to v1.8.0 the error went away.

PatrickAlphaC commented 5 months ago

Updated in the most recent commit. I'm going to do a bit of a refactor. Thanks for reporting this.