Update docs

This commit is contained in:
github-actions
2023-11-09 16:04:16 +00:00
parent 18a76e7d17
commit 03335b8b78
14 changed files with 575 additions and 75 deletions

View File

@ -0,0 +1,17 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
contract MyContract is Ownable {
constructor(address initialOwner) Ownable(initialOwner) {}
function normalThing() public {
// anyone can call this normalThing()
}
function specialThing() public onlyOwner {
// only the owner can call specialThing()!
}
}