TransWikia.com

Can I use create2 to deploy minimal proxies in solidity, without using assembly?

Ethereum Asked by Nick Furfaro on November 10, 2021

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!

One 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:

Answered by onepix on November 10, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP