Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Implement ERC 1167, Clone Factory #1162
After much discussion, we've decided tooling is not yet ready to get something like this into OpenZeppelin. There are too many caveats related to proxies (e.g. constructors, self-destruct) that allow for easy misuse, which go against our design principles.
Having some sort of way to retrieve the constructor of a contract type at compile time, check for self destruction, etc., would allow for this to be safely implemented, at which point we will reconsider including this in the library.
Closing the issue until such a time comes