Skip to content

Instantly share code, notes, and snippets.

@hbarcelos
Created June 24, 2021 18:44
Show Gist options
  • Save hbarcelos/62aa9e6629475c608ba5d7b22ffbc793 to your computer and use it in GitHub Desktop.
Save hbarcelos/62aa9e6629475c608ba5d7b22ffbc793 to your computer and use it in GitHub Desktop.
Solidity Constants Initialization
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