There are several issues with the test:
- It searches for contract
Random Ape. Should be RandomAPE
- It passes too many arguments to the safeMint function. Need to delete the second argument.
- There is an issue with access control when trying to run
claimReward in the test
Error: VM Exception while processing transaction: reverted with reason string 'AccessControl: account 0x9fe46736679d2d9a65f0992f2272de9f3c7fa6e0 is missing role 0x9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6'
It appears that claimReward runs the mint function but the user doesn't have the MINTER_ROLE role
There are several issues with the test:
Random Ape. Should beRandomAPEclaimRewardin the testIt appears that
claimRewardruns themintfunction but the user doesn't have theMINTER_ROLErole