Skip to content
medium Logic / State No SWC entry CWE-330

Predictable Contract Address / CREATE2 Reorg Risk

SAFE-0094 Logic / State Checked automatically by the scanner
1

What goes wrong

Funds or logic are committed to a CREATE2 address before the contract is deployed; a chain reorg or salt reuse can deploy different code at that address, or an attacker can pre-compute and grief.

2

How to fix it

the pattern that is safe
// Deploy first, verify code, then interact; bind salt to immutable init code hash.
Deploy-then-fund; guard CREATE2 salts.
Check your own contract for this

The SaferICO scanner runs 201 detectors over your Solidity source, SAFE-0094 among them. Paste an address or the source itself — a small per-scan fee, shown before you sign, or unlimited on any plan.

Run the scanner See how it is attacked Read the docs