Skip to content

Commit

Permalink
refactor: use test profile for Halmos
Browse files Browse the repository at this point in the history
  • Loading branch information
QGarchery committed Apr 19, 2024
1 parent 6ef5c7a commit c29c3bc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/halmos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ jobs:
run: pip install halmos

- name: Run Halmos
run: halmos
run: FOUNDRY_PROFILE=test halmos
2 changes: 1 addition & 1 deletion foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
libs = ["lib"]
names = true
sizes = true
via-ir = false
via-ir = true
optimizer_runs = 999999 # Etherscan does not support verifying contracts with more optimization runs.

[profile.default.invariant]
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"test:forge:invariant": "FOUNDRY_MATCH_CONTRACT=InvariantTest yarn test:forge",
"test:forge:integration": "FOUNDRY_MATCH_CONTRACT=IntegrationTest yarn test:forge",
"test:hardhat": "npx hardhat test",
"test:halmos": "FOUNDRY_PROFILE=test halmos",
"lint": "yarn lint:forge && yarn lint:hardhat",
"lint:forge": "forge fmt --check",
"lint:hardhat": "prettier --check test/hardhat",
Expand Down

0 comments on commit c29c3bc

Please sign in to comment.