diff --git a/test/Escrow.t.sol b/test/Escrow.t.sol index 420f0fb..be47eef 100644 --- a/test/Escrow.t.sol +++ b/test/Escrow.t.sol @@ -108,7 +108,7 @@ contract EscrowContractTest is Test { // Cancel thaw and attempt to withdraw (expect revert) vm.startPrank(SENDER_ADDRESS); - escrowContract.cancelThaw(receiverAddress); + escrowContract.thaw(receiverAddress, 0); uint256 senderBalanceBeforeWithdraw = mockERC20.balanceOf(SENDER_ADDRESS); vm.expectRevert(Escrow.EscrowNotThawing.selector); @@ -235,6 +235,7 @@ contract EscrowContractTest is Test { // Simulate passing partial freeze period vm.warp(block.timestamp + partialFreezePeriod); + partialEscrowAmount += ESCROW_AMOUNT / 10; } // expected to revert because not enough time has passed since the last thaw request