Skip to content

Test fails #1

@stephengladney

Description

@stephengladney

There are several issues with the test:

  1. It searches for contract Random Ape. Should be RandomAPE
  2. It passes too many arguments to the safeMint function. Need to delete the second argument.
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions