QuillAcademy Profile picture
Secure the Web3 with The QuillAcademy! - The most holistic platform for blockchain security professionals. Powered by: @QuillAudits
Apr 24, 2023 6 tweets 2 min read
Have you ever wondered what sets CREATE apart from CREATE2? Let's find out..

In Solidity, `create` and `create2` are important opcodes for smart contract creation. `create` deploys a new contract, while `create2` creates a contract at a deterministic address based on input. Here's an example of how `create` works:

This deploys a new instance of `NewContract` and returns the address of the new contract. The formula for determining the contract address is `keccak256(sender, nonce).`

#solidity Image