← Code LabSolidity0/50 solved · 0%
Patterns · easy

11. Modifiers

Reusable access checks.

Create a `modifier onlyOwner()` and apply it to `setValue(uint256)` which writes to `uint256 public value`. Owner is set in constructor to `msg.sender`.
Required in your answer: modifier onlyOwnermsg.sender == owneronlyOwner {_;