-
Avoid Risky Opcodes: Do not use
selfdestruct()
,delegatecall()
, orcallcode()
in contracts meant to be deployed usingCREATE2
. These opcodes can modify a contract’s behavior or destroy it, making the code deployed at the address hard to predict. -
Beware of Future Deployments: Recognize that
CREATE2
allows for interactions with addresses that haven’t been deployed yet. Be cautious about making external calls to addresses created withCREATE2
until you’re certain of the deployed code at that address. Unknown or malicious code could be deployed there later.