The testAddReward function is not working correctly because the addReward function can only be invoked by the owner. Additionally, during the initialization of the smart contract in the constructor, four items are pushed to the rewardPool. As a result, the Diamond Coin item has a different ID than the one declared in the test.
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.