diff --git a/test/utils/Assertions.sol b/test/utils/Assertions.sol index 8ca38257..a2420e5b 100644 --- a/test/utils/Assertions.sol +++ b/test/utils/Assertions.sol @@ -1,25 +1,19 @@ -// -////Assert balances are correct after new loan is created -//modifier newLoanAssertions() { -// -// uint256 borrowerBalance; -// -// _; -// -// //Assert updated balances are correct -// -//} -// -// -////Assert balances are correct after loan is repaid -//modifier repayAssertions() { -// -// uint256 borrowerBalance; -// -// _; -// -// //Assert updated balances are correct -// -//} -// -// +abstract contract Assertions { + //Assert balances are correct after new loan is created + modifier newLoanAssertions() { + uint256 borrowerBalance; + + _; + + //Assert updated balances are correct + } + + //Assert balances are correct after loan is repaid + modifier repayAssertions() { + uint256 borrowerBalance; + + _; + + //Assert updated balances are correct + } +} diff --git a/test/utils/Events.sol b/test/utils/Events.sol deleted file mode 100644 index a51138ae..00000000 --- a/test/utils/Events.sol +++ /dev/null @@ -1,8 +0,0 @@ -// -// bytes32 lienOpenTopic = bytes32(0x57cb72d73c48fadf55428537f6c9efbe080ae111339b0c5af42d9027ed20ba17); -// for (uint256 i = 0; i < logs.length; i++) { -// if (logs[i].topics[0] == lienOpenTopic) { -// (loanId, loan) = abi.decode(logs[i].data, (uint256, LoanManager.Loan)); -// break; -// } -// }