Duplicate onlyNftOwner
modifier is going to spend gass without any benefit.
The onlyNftOwner
modifier is checking if the msg.sender
is the owner of the given nftAddress
& tokenId
.
While it's correct to have it on the function, there is no benefit to having it twice.
The modifiers will be executed twice without, doing the same check. That would spend gass
Manual review
Keep only one modifier on the function.
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.