Optimizing your contract’s gas usage
- 💻Tutorials
- 👤
- ⭐Intermediate
- 🏷️
- 📅7 years ago
We will look into tuning and optimizing our Solidity contract to minimize the amount of gas required.
As everyone in the Ethereum community knows, Gas is a necessary evil for the execution of smart contracts. If you specify too little, your transaction may not get picked up for processing in a timely manner — or, die in the middle of processing a smart contract action. That being said, a smart contract should not be greedy or loose with the valuable resources that the users entrust to them. It is for this reason that we will look into tuning and optimizing our contract to minimize the amount of gas required.