-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
create2 #18
Comments
If the factory contract used CREATE2, I think someone could front run a transaction's salt and steal the address. So you'd have to wait for a few confirmations before sending any funds. |
Not true, CREATE2 uses the deployer address in computing the resulting contract address edit: not sure exactly what situation you are describing |
But in this case, the deployer's address is the factory address, not msg.sender.
… On Oct 8, 2020, at 3:06 PM, Moody Salem ***@***.***> wrote:
If the factory contract used CREATE2, I think someone could front run a transaction's salt and steal the address. So you'd have to wait for a few confirmations before sending any funds.
Not true, CREATE2 uses the deployer address in computing the resulting contract address
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Oh, I am using a version of the minimal proxy in a library and calling it from a contract. |
@moodysalem I've published a create2 implementation here: https://github.com/solidstate-network/solidstate-contracts/blob/master/contracts/architecture/factory/MinimalProxyFactory.sol Note that it's in a pre-release state, and not to be completely trusted. It is also likely to not be as minimal as possible. I still need to test the gas consumption. |
Hi guys,
Can you submit a PR and we'll have the optionality team take a look at it?
Best,
pete
…On Sun, Nov 22, 2020 at 6:13 PM Nick Barry ***@***.***> wrote:
@moodysalem <https://github.com/moodysalem> I've published a create2
implementation here:
https://github.com/solidstate-network/solidstate-contracts/blob/master/contracts/architecture/factory/MinimalProxyFactory.sol
Note that it's in a pre-release state, and not to be completely trusted.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#18 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFRBO4Z5WW73TUMZEQDS6TSRGLI5ANCNFSM4SB5OP6Q>
.
--
-pete
peter m. murray
[email protected]
|
I think that this issue could be circumvented by hashing the Note that it should be |
Looks like OpenZeppelin added support for CREAT2-enabled minimal proxies in their |
please support create2!
The text was updated successfully, but these errors were encountered: