The current implementation of the onlyDiamond()
modifier is incorrect and can be misleading
Take a look at onlyDiamond()
modifier in AppStorage.sol
contract: here
Because address(this)
is address of AppStorage.sol
not diamond'address
, so this implementation is incorrect and can be misleading
Improper implementation of the modifier can be misleading and cause trouble when it is used
Manual review
Consider re-implementing it for correct functionality
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.