From ac6e325e16fef6fe817b027fdc1746352da80cf4 Mon Sep 17 00:00:00 2001 From: Alain Olivier Date: Tue, 20 Feb 2024 22:05:40 +0100 Subject: [PATCH] test(rewards-manager): remove missingSteps() --- test/RewardsManager.test.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/test/RewardsManager.test.js b/test/RewardsManager.test.js index 9745d5c..21a20c2 100644 --- a/test/RewardsManager.test.js +++ b/test/RewardsManager.test.js @@ -8,7 +8,7 @@ const { ACL_ADDRESS, TOKEN_MANAGER_ADDRESS, SAFE_ADDRESS } = require('../tasks/c const AclAbi = require('./abi/ACL.json') const TokenManagerAbi = require('./abi/TokenManager.json') const { EPOCH_DURATION, ONE_DAY, ONE_MONTH, PNT_MAX_TOTAL_SUPPLY, VOTE_STATUS } = require('./constants') -const { DEPOSIT_REWARD_ROLE, MINT_ROLE, BURN_ROLE, WITHDRAW_ROLE } = require('./roles') +const { DEPOSIT_REWARD_ROLE, MINT_ROLE, WITHDRAW_ROLE } = require('./roles') const { hardhatReset } = require('./utils/hardhat-reset') const { sendEth } = require('./utils/send-eth') @@ -33,11 +33,6 @@ describe('RewardsManager', () => { const sendPnt = (_from, _to, _amount) => pnt.connect(_from).transfer(_to, ethers.parseEther(_amount)) - const missingSteps = async () => { - await setPermission(await rewardsManager.getAddress(), await tokenManager.getAddress(), MINT_ROLE) - await setPermission(await rewardsManager.getAddress(), await tokenManager.getAddress(), BURN_ROLE) - } - const depositRewardsForEpoch = async (_amount, _epoch) => { await rewardsManager.grantRole(DEPOSIT_REWARD_ROLE, owner.address) await pnt.approve(await rewardsManager.getAddress(), _amount) @@ -134,8 +129,6 @@ describe('RewardsManager', () => { kind: 'uups' } ) - - await missingSteps() }) it('should deploy correctly', async () => {