Closed as not planned
Description
Result from the open discussion about upgradable contracts at the Solidity Summit
See https://hackmd.io/zjYDbVL5TEqgpOgMXXNT1g?both
As proxies cannot make use of the constructor code if the "master copy" it is very common to use some initializer code. This can cause issues and often requires overhead (e.g. adding a init
function to the master copy)
Currently it's not possible to grab the constructor bytecode from the deployBytecode since the constructor argument positions are hardcoded, so a different-length runtime code would yield differ.
Therefore it would be very valuable to expose the constructor in a way that it can be reused.