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

Create 3 support #2

Open
jd1900 opened this issue Jan 16, 2024 · 6 comments
Open

Create 3 support #2

jd1900 opened this issue Jan 16, 2024 · 6 comments

Comments

@jd1900
Copy link

jd1900 commented Jan 16, 2024

It would be great to add create3 support for just using the salt and not needing the initcode hash.

@MrSpike63
Copy link
Owner

As far as I can tell, ethereum/EIPs#3171 isn't official, but I have added support for create3-factory. It takes the address of the caller, deployer contract, and the bytecode of the deployer's proxy contract, as there are multiple deployer contracts to choose from.

@NaliFinance
Copy link

i may doing it wrong, but given the contract bytecode, the deployer-address (0x9fBB3DF7C40Da2e5A0dE984fFE2CCB7C47cd0ABf) and the msg.sender (my) address.. i get a salt, but when i test it
https://sepolia.etherscan.io/address/0x9fBB3DF7C40Da2e5A0dE984fFE2CCB7C47cd0ABf#readContract

it gives me a different final contract address.. what am i missing?

@MrSpike63
Copy link
Owner

Just to confirm, did you set the bytecode to 0x67363d3d37363d34f03d5260086018f3?

@NaliFinance
Copy link

Just to confirm, did you set the bytecode to 0x67363d3d37363d34f03d5260086018f3?

nope, but it's working now! where i could find that? i used the bytecode from etherscan and it didn't work, with this it's working! great!!

@MrSpike63
Copy link
Owner

The bytecode needed is the bytecode of the proxy contract the deployer uses, not the deployer itself. You can find it here.

@NaliFinance
Copy link

damn, thank you! i didn't understand that at first glance.. thank you again for all the help! +++

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

3 participants