Data storage and operations on the EVM cost gas, and given the immutability of Solidity code, there is no way to correct costly design decisions in our smart contracts. Following are some non-exhaustive best practices to optimize the gas usage of our contracts:

Get hands-on with 1400+ tech skills courses.