You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following the line of #585 we should be able to have the same as immutable in solidity.
We can use readonly and the constructor of the class, if the contract have a constructor it could be called during _ondeploy, then, we can modify the script like evm does for immutables, it will be storage free and safe to read this values because these values will be converted as constants in the script.
Maybe we can create a new syscall that can be called only during _ondeploy for replace this constants, then the rest can be done in the compiler.
Is for gas saving, you can use whatever you want. Also it abstract the storage access (like #585) that is so different than in solidity, it will be easy to attract solidity developers.
Following the line of #585 we should be able to have the same as
immutable
in solidity.We can use
readonly
and the constructor of the class, if the contract have a constructor it could be called during_ondeploy
, then, we can modify the script like evm does for immutables, it will be storage free and safe to read this values because these values will be converted as constants in the script.Maybe we can create a new syscall that can be called only during
_ondeploy
for replace this constants, then the rest can be done in the compiler.The text was updated successfully, but these errors were encountered: