일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
- Interface
- Redux
- useState
- JavaScript
- evm
- node.js
- Ethereum
- API
- Props
- bitcoin
- hardhat
- middleware
- typeScript
- 삶
- tailwindcss
- CSS
- REACT
- graphQL
- express.js
- CLASS
- nextJS
- HTML
- SSR
- 기준
- concept
- blockchain
- solidity
- web
- error
- built in object
- Today
- Total
목록Constant (2)
ReasonJun
Immutable and constant are two keywords that can be used to declare variables in Solidity. Both keywords can be used to prevent the value of a variable from being changed, but they have some key differences. Constant variables are initialized at compile time and their value cannot be changed afterwards. This means that constant variables can only be assigned a value once, and they cannot be reas..
A constant in Solidity is a variable whose value cannot be changed once it has been initialized. Constants are defined using the constant keyword. Constants can be used to represent values that should not change, such as the maximum supply of a token or the address of a trusted contract. They can also be used to improve the readability and maintainability of your code. Here is an example of how ..