Skip to content

Commit

Permalink
fix: test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Van0k committed Dec 26, 2023
1 parent 3653c8d commit 10ddfc1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions contracts/test/integration/credit/OpenCreditAccount.int.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -116,14 +116,16 @@ contract OpenCreditAccountIntegrationTest is IntegrationTestHelper, ICreditFacad
function test_I_OCA_03_openCreditAccount_burns_token_in_whitelisted_mode() public withDegenNFT creditTest {
IDegenNFTV2 degenNFT = IDegenNFTV2(creditFacade.degenNFT());

uint256 startingBalance = degenNFT.balanceOf(USER);

vm.prank(CONFIGURATOR);
degenNFT.mint(USER, 2);

expectBalance(address(degenNFT), USER, 2);
expectBalance(address(degenNFT), USER, startingBalance + 2);

_openTestCreditAccount();

expectBalance(address(degenNFT), USER, 1);
expectBalance(address(degenNFT), USER, startingBalance + 1);
}

// // /// @dev I:[OCA-4]: openCreditAccount sets correct values
Expand Down

0 comments on commit 10ddfc1

Please sign in to comment.