Put in order · Blockchain and Web3 course · Module 12: Security & Audit
Horizontal Sorting: Modifier Pattern
Arrange the syntax of the onlyOwner modifier:
Items to put in order
- }
- _;
- require(msg.sender == owner);
- modifier onlyOwner() {
You can check the correct answer by solving this task in the CodeWorlds game.