This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.8.26; | |
| contract Variables { | |
| // State variables are stored on the blockchain. | |
| string public text = "Hello"; | |
| uint256 public num = 123; | |
| function doSomething() public view { | |
| // Local variables are not saved to the blockchain. |