Skip to content

Commit

Permalink
fix: compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Grimal committed Apr 11, 2024
1 parent c5c4d5e commit 09c93f3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ test = "test"
libs = ["lib"]
via_ir = true
optimizer_runs = 999999 # Etherscan does not support verifying contracts with more optimizer runs.
unchecked_cheatcode_artifacts = true

[profile.default.fuzz]
runs = 4096
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@
"scripts": {
"prepare": "husky install && forge install",
"build:forge": "FOUNDRY_PROFILE=build forge build",
"build:blue": "yarn --cwd lib/morpho-blue/ build:forge --out ../../out/",
"build:hardhat": "hardhat compile",
"test:forge": "FOUNDRY_PROFILE=test forge test",
"test:forge": "yarn build:blue && FOUNDRY_PROFILE=test forge test",
"test:hardhat": "hardhat test",
"lint": "yarn lint:forge && yarn lint:ts",
"lint:ts": "prettier --check test/hardhat",
Expand Down
2 changes: 2 additions & 0 deletions test/forge/BlueTest.sol
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,11 @@ contract BlueTest is Test {

oracle.setPrice(ORACLE_PRICE_SCALE);

vm.startPrank(OWNER);
morpho.enableIrm(address(adaptiveCurveIrm));
morpho.enableIrm(address(fixedRateIrm));
morpho.enableLltv(DEFAULT_TEST_LLTV);
vm.stopPrank();

vm.prank(SUPPLIER);
loanToken.approve(address(morpho), type(uint256).max);
Expand Down

0 comments on commit 09c93f3

Please sign in to comment.