Created
June 24, 2021 18:44
-
-
Save hbarcelos/62aa9e6629475c608ba5d7b22ffbc793 to your computer and use it in GitHub Desktop.
Solidity Constants Initialization
This file contains 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
pragma solidity ^0.8.0; | |
contract Contants { | |
uint256 public constant A = 10; | |
uint256 public constant B = 20; | |
uint256 public constant C = B/A; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment