Hacker News new | ask | show | jobs
by ukoki 1299 days ago
I've never seen Solidity before, but it sure looks like `onlyOwner` is an arbitrary modifier name, and you could use _any_ modifier that contains a require(msg.sender == owner) assertion to restrict the caller. So shouldn't the answer be "...you can add a modifier to the function.." rather than "...you can add the onlyOwner modifier to the function...".