Skip to content

Selfdestruct Dependency / Forced Removal Assumption

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

What goes wrong

Contract logic depends on another contract being destroyable or on selfdestruct refunds; EIP-6780 changed selfdestruct so it no longer deletes code outside the same transaction, breaking such assumptions.

2

How to fix it

the pattern that is safe
// Redesign without relying on selfdestruct semantics.
Mind EIP-6780; don't depend on selfdestruct deletion.
Check your own contract for this

The SaferICO scanner runs 201 detectors over your Solidity source, SAFE-0093 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