mintNft can be done through the whitelist systemThe contract owner is not allowed to call the mintNft function because of this line:
This check will be performed on every mint and will increase the transaction cost. However, the protocol already implements a whitelist system to restrict the access to mintNft. If the owner is not whitelisted, he will not be able to mint an NFT, which is the case by default.
If we want to make sure that the owner account will never be able to mint an NFT, we can block the owner from whitelisting his own address, through the whitelistWallet function.
However, this will not stop the owner from creating another account that he can whitelist to mint an NFT.
Perform the check in the whitelistWallet function:
This will NOT prevent the owner from minting NFTs through anothre whitelisted account.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.
The contest is complete and the rewards are being distributed.