Factory smart contract to make easier and safer usage of the `CREATE` and `CREATE2` EVM opcodes as well as of `CREATE3`-based (i.e. without an initcode factor) contract creations.
Refactor the modifier guard to implement various safeguarding mechanisms.
Overloaded functions where you can specify, where to send any excess ether (ETH) (Comment 5). If there is any ETH forced into this contract, any excess ETH will be part of the next refund transaction. Thus "claiming" any excess ETH can be done by deploying and initialising a simple contract that receives the ETH.
Refactor the minimal proxy clone functions to use a generic data payload for initialisation, as well as fix the issue with calling the implementation (Comment 6).
I've run through all the comments, and linked a fix commit. Please resolve the comments you agree with. I will review this PR again later today or tomorrow.
📋 Summary
Fixes #1.
guard
to implement various safeguarding mechanisms.data
payload for initialisation, as well as fix the issue with calling theimplementation
(Comment 6).🐶 Cute Animal Picture