LOGBOOK

HELP

Quiz Entry - updated: 2026.07.30

What is a modifier in Solidity?

A reusable snippet of pre/post-check code you attach to a function's declaration; the _; placeholder marks where the function's own body runs.

It avoids copy-pasting the same check into many functions — an onlyOwner modifier runs a require first, then _; executes the decorated function. Move the _; before the check and the order flips.

From Quiz: IOTHACK / IOTHACK Glossary | Updated: Jul 30, 2026