Every line of your smart contract costs something.

Some lines cost more than others.

In this part of our gas saving series, we’ll explore how to write smarter Solidity code that keeps your contract lean and efficient.

Here are six simple and practical ways to reduce gas costs while writing Solidity smart contracts.

1. Use payable Only When Needed, But Know It Saves Gas