Skip to main content
✏️ Code CompletionSO Solidity Hard+35 XP

Custom Modifier

Complete the modifier to restrict access to the owner.

✏️ Fill in the blank
modifier onlyOwner() {
  require(msg.sender == owner, "Not owner");
  ___;
}

✏️ Type the missing code: