Skip to content

Commit

Permalink
Test: remove unused pranks
Browse files Browse the repository at this point in the history
  • Loading branch information
Quazia committed Mar 27, 2024
1 parent 7673636 commit eedecd4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
4 changes: 0 additions & 4 deletions test/QuestClaimable.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,6 @@ contract TestQuestClaimable is Test, Errors, Events, TestUtils {
CLAIM ERC20
//////////////////////////////////////////////////////////////*/
function test_claim_with_referrer() public {
vm.startPrank(owner);

vm.startPrank(questCreator);
sampleERC20.approve(address(questFactory), calculateTotalRewardsPlusFee(TOTAL_PARTICIPANTS, REWARD_AMOUNT, QUEST_FEE));
address questAddress = questFactory.createERC20Quest(
Expand Down Expand Up @@ -108,9 +106,7 @@ contract TestQuestClaimable is Test, Errors, Events, TestUtils {
}

function test_claim_without_referrer() public {
vm.startPrank(owner);
referrer = address(0);

vm.startPrank(questCreator);
sampleERC20.approve(address(questFactory), calculateTotalRewardsPlusFee(TOTAL_PARTICIPANTS, REWARD_AMOUNT, QUEST_FEE));
address questAddress = questFactory.createERC20Quest(
Expand Down
2 changes: 0 additions & 2 deletions test/QuestFactory.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -406,8 +406,6 @@ contract TestQuestFactory is Test, Errors, Events, TestUtils {
VIEW
//////////////////////////////////////////////////////////////*/
function test_questData() public {
vm.startPrank(owner);

vm.startPrank(questCreator);
sampleERC20.approve(address(questFactory), calculateTotalRewardsPlusFee(QUEST.TOTAL_PARTICIPANTS, QUEST.REWARD_AMOUNT, QUEST_FEE));
address questAddress = questFactory.createERC20Quest(
Expand Down

0 comments on commit eedecd4

Please sign in to comment.