Skip to content

Commit

Permalink
test(rewards-manager): remove missingSteps()
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviera9 committed Feb 20, 2024
1 parent eb38a3a commit e29c27a
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions test/RewardsManager.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -134,8 +129,8 @@ describe('RewardsManager', () => {
kind: 'uups'
}
)

await missingSteps()
await setPermission(await rewardsManager.getAddress(), await tokenManager.getAddress(), MINT_ROLE)
await setPermission(await rewardsManager.getAddress(), await tokenManager.getAddress(), BURN_ROLE)
})

it('should deploy correctly', async () => {
Expand Down

0 comments on commit e29c27a

Please sign in to comment.