-
Notifications
You must be signed in to change notification settings - Fork 45
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
Add support for CREATE2 clones and address prediction #19
Conversation
Thanks @Arachnid for the PR, I posted a comment on the CREATE3 PR: #17 where I mentioned that it would be good to also think about CREATE2 in regard to naming convention right now the naming convention might be pretty confusing if we accept both PR.
I did not think that through but What do you think ? @ZeframLou ? |
I think
|
Yes, |
Yeah this seems good, will update my PR |
I've done the rename, and also refactored the library to return creation bytecode, which is necessary in order for Unfortunately this does have some impact on gas usage; testGas_clone goes from 64,579 gas to 64,738 (+159 gas). |
Thanks for that. I am personally ok with extra gas but another solution would be to duplicate the code between the view function and the write function at the cost of later maintainability. |
I did consider that, but it seems like a lot of bloat and maintenance hassle. |
No description provided.