hey, anyone can gimme a hint how to deploy the same contract on BSC & ERC using the same CA?

Jan 5, 2022, 10:34 AM
You want the same contract address to be deployed on different chains? Use create2. OZ has a nice toolkit to help you.
Jan 5, 2022, 10:44 AM
Correct
Do I need to watch out for the nonce?
Jan 5, 2022, 10:45 AM
Create2 is your friend, hence
Jan 5, 2022, 10:45 AM
Read sth about it but need to dive deeper
Jan 5, 2022, 10:45 AM
Nope, as with create2 will use a salt provided by you, instead of using your nonce. So, you ll have a better control on targeted address. (That does not mean that you can choose your target address)
Jan 5, 2022, 10:47 AM
Ok. Need to check for it. Thx a lot
Jan 5, 2022, 10:49 AM

© 2024 Draquery.com All rights reserved.