Skip to content

Commit

Permalink
Remove console.logs
Browse files Browse the repository at this point in the history
  • Loading branch information
RickGriff committed May 3, 2024
1 parent 271e79e commit 486e131
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions contracts/src/BorrowerOperations.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import "./Dependencies/LiquityBase.sol";
import "./Dependencies/Ownable.sol";
import "./Dependencies/CheckContract.sol";

import "forge-std/console2.sol";
// import "forge-std/console2.sol";

contract BorrowerOperations is LiquityBase, Ownable, CheckContract, IBorrowerOperations {
using SafeERC20 for IERC20;
Expand Down Expand Up @@ -231,10 +231,8 @@ contract BorrowerOperations is LiquityBase, Ownable, CheckContract, IBorrowerOpe

// Send ETH as collateral to a trove
function addColl(uint256 _troveId, uint256 _ETHAmount) external override {
console2.log("here");
ContractsCacheTMAPBT memory contractsCache = ContractsCacheTMAPBT(troveManager, activePool, boldToken);
_requireTroveIsActive(contractsCache.troveManager, _troveId);
console2.log("here2");
// TODO: Use oldColl and assert in fuzzing, remove before deployment
uint256 oldColl = troveManager.getTroveEntireColl(_troveId);
_adjustTrove(msg.sender, _troveId, _ETHAmount, true, 0, false, 0, contractsCache);
Expand Down
2 changes: 1 addition & 1 deletion contracts/test/BorrowerOperationsTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ contract("BorrowerOperations", async (accounts) => {
// assert.isAtMost(th.getDifference(dennis_Stake), 100)
// })

it.only("addColl(), reverts if trove is non-existent or closed", async () => {
it("addColl(), reverts if trove is not active", async () => {
// A, B open troves
await openTrove({ ICR: toBN(dec(2, 18)), extraParams: { from: alice } });
const { troveId: bobTroveId } = await openTrove({ ICR: toBN(dec(2, 18)), extraParams: { from: bob } });
Expand Down

0 comments on commit 486e131

Please sign in to comment.