Solidity immutable

생성자에서 immutable 변수에 값을 할당하면 바이트 코드를 변경하여 값을 채워 넣는다. 결과적으로 constant와 동일하게 바이트 코드에 주입된다. 따라서 storage slot도 사용하지 않는다.


tags: blockchain, smart contract, solidity