In RamNFT.sol::mintRamNFT()
and RamNFT.sol::updateCharacteristics()
are marked with visibility as public
which costs more gas when called by external contracts. Since, these functions are not being accessed internally, its advisable to change the visibility to external to save gas
Also RamNFT.sol::getCharacteristics
view function is being used by ChoosingRam::increaseValuesOfParticipants()
function so it need to be external. Do note that view functions cost gas when a contract makes a call to read its storage.
Also, there is a possibility that users might use smart contract wallets/external smart contracts to interact with the protocol. Using public functions will cost more gas than external visibility of function.
This will cost more gas to call these functions
Make sure to do below code changes in RamNFT.sol
Make sure to do below code changes in ChoosingRam.sol
Make sure to do below code changes in Dussehra.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.