Put in order · Blockchain and Web3 course · Module 6: Solidity Basics
Custom Modifiers
Arrange the declaration of the custom onlyOwner modifier correctly:
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.