Solidity 0.6.2 allows the creation of contracts with the create2
opcode via the new
keyword and passing a salt in addition to any args. This is adequate for creating standard contracts, but what if I want to deploy minimal proxies as per eip-1167? I can't see a way to pass in the creation bytecode for the proxy, with the template's address included. I know how I can do this with inline assembly, but it would be nice if I didn't have to!
1 Answer
Not a proper answer but you should find that openzeppelin-CLI helpfull
npx oz create2 --query --salt 12345 --network development
On top of that, these links: