As mentioned, making choosingRamContract
as immutable is ideal. Hence, it becomes impossible to update the contract address later if it was set as wrong address initially.
Place below code inDussehra.t.sol
and run - forge test --mt test_zeroAddress
it's a best practice to check if the contract address being set is valid address. for eg. not a zero address to ensure any unintended behavior of protocol like loosing funds or assets.
make below code changes in ChoosingRam.sol
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.