Skip to content

Commit

Permalink
refactor: use budget owner address in assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
mmackz committed Sep 12, 2024
1 parent ab0439c commit 498bea5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/QuestBudget.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -480,8 +480,8 @@ contract QuestBudgetTest is Test, TestUtils, IERC1155Receiver {
// Ensure the returned quest address is not the zero address
assertTrue(questAddress != address(0));

// Assert that the quest manager is set to the test contract
assertEq(questBudget.questManagers(questId), address(this));
// Assert that the quest manager is set to the questBudget owner
assertEq(questBudget.questManagers(questId), address(questBudget.owner()));

// Assert that the reserved funds is equal to the management fee
assertEq(questBudget.reservedFunds(), maxManagementFee);
Expand Down

0 comments on commit 498bea5

Please sign in to comment.