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 ac6e325
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions test/RewardsManager.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand All @@ -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,6 @@ describe('RewardsManager', () => {
kind: 'uups'
}
)

await missingSteps()
})

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

0 comments on commit ac6e325

Please sign in to comment.