Skip to content

Instantly share code, notes, and snippets.

import sys
from slither import Slither
assert len(sys.argv) == 2
address = sys.argv[1]
slither = Slither(address)
for contract in slither.contracts_derived:
for var in contract.variables:
if not var.is_constant and not var.is_immutable:
(slot, offset) = contract.compilation_unit.storage_layout_of(