The updateCharacteristics
function in the RamNFT
contract uses a redundant struct assignment which increases gas costs. Optimizing this function can save gas and improve efficiency.
The current implementation of the updateCharacteristics
function creates a new instance of the CharacteristicsOfRam
struct and reassigns it to the mapping. This redundancy can be optimized to save gas.
Directly modifying the struct properties reduces gas costs by eliminating the need to create a new struct instance.
Manual code review.
Update the updateCharacteristics
function to directly modify the struct's properties without creating a new instance.
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.