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