ds-proxy icon indicating copy to clipboard operation
ds-proxy copied to clipboard

use deterministic CREATE2 opcode

Open rainbreak opened this issue 6 years ago • 1 comments

Constantinople will add the CREATE2 opcode, which has contract addresses that are a function of the code hash. This would remove the need for caching.

https://eips.ethereum.org/EIPS/eip-1014

rainbreak avatar Oct 19 '18 13:10 rainbreak

This would remove the need for caching.

A hypothetical execute function that renounces caching would need the deployer address, the salt, and the construction bytecode as parameters.

What do you do if no contract is found for that set of parameters? Do you deploy it via the DSProxy? Do you revert? Users might prefer to use their own factories instead of letting the DSProxy do this.

PaulRBerg avatar Aug 29 '21 19:08 PaulRBerg