From 498bea5d354d7bbf3ef284f777b8162dc63a3709 Mon Sep 17 00:00:00 2001 From: mmackz Date: Wed, 11 Sep 2024 23:35:22 -0700 Subject: [PATCH] refactor: use budget owner address in assertion --- test/QuestBudget.t.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/QuestBudget.t.sol b/test/QuestBudget.t.sol index d67bc546..5c83b892 100644 --- a/test/QuestBudget.t.sol +++ b/test/QuestBudget.t.sol @@ -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);