Skip to content

Commit

Permalink
Add quick fix for the existing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sandstone-ag committed Mar 5, 2025
1 parent 7187855 commit f41f780
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ This project uses NPM for dependency management and Forge for tests so you'll ne

* Install Foundry and `forge` https://book.getfoundry.sh/getting-started/installation

* Install Foundry v1.0.0
```sh
foundryup -i 1.0.0
```

* Create `.env` file
```sh
cp .env.example .env
Expand Down
4 changes: 4 additions & 0 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,16 @@ libs = ['node_modules', 'lib']
test = 'test'
cache_path = 'cache_forge'
# solc-version = "0.8.26"
optimizer=true
no-match-path = 'test/kontrol/*'
fs_permissions = [
{ access = "read-write", path = "./deploy-config"},
{ access = "read-write", path = "./deploy-artifacts"}
]

# TODO: remove the next line. This is a quick fix for the existing tests that is required for tests to pass after upgrade of Foundry to v1.0.0.
allow_internal_expect_revert = true

[profile.kprove]
src = 'test/kontrol'
out = 'kout'
Expand Down

0 comments on commit f41f780

Please sign in to comment.