Skip to content
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

[Feature request] Prefix on the salt #14

Open
ethermachine opened this issue Oct 17, 2022 · 1 comment
Open

[Feature request] Prefix on the salt #14

ethermachine opened this issue Oct 17, 2022 · 1 comment

Comments

@ethermachine
Copy link

Metamorphic is a popular complementary tool, with factories for multiple contracts deployed on mainnet.

To avoid front-running / stealing of selfdestructed addresses (because the functions on the deployed factories are public), they enforce that the first 20bytes of the salt must match the msg.sender.

This is a request to include another input flag, that when non-empty, would be the prefix of the calculated salts.

@acegilz
Copy link

acegilz commented Oct 21, 2022

To avoid front-running / stealing of selfdestructed addresses (because the functions on the deployed factories are public), they enforce that the first 20bytes of the salt must match the msg.sender.

This is achievable with https://github.com/0age/create2crunch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants