Focus mode

Smart Contract Development with Solidity

Constants

Code from video: https://solidity-by-example.org/constants/ 

You can access the video content in Turkish prepared by İTÜ Blockchain here (beetween 4:30 - 6:19 minutes): https://www.youtube.com/watch?v=XQR2tL4v0_c&list=PLby2HXktGwN4Cof_6a8YwlMrboX8-hs73&index=4 

Constants are variables that cannot be modified. Replacing variables with constants can reduce gas cost of calling function on the smart contract. 

Resources:

You can find detailed further information from Solidity Official documentation (in English): 

https://docs.soliditylang.org/en/v0.8.15/contracts.html#constant-and-immutable-state-variables


Comments

You need to enroll in the course to be able to comment!