Skip to content

Instantly share code, notes, and snippets.

@grampabacon
Last active September 28, 2021 16:41
Show Gist options
  • Save grampabacon/e1ae7022edf4bb917b3e218b955d0fe6 to your computer and use it in GitHub Desktop.
Save grampabacon/e1ae7022edf4bb917b3e218b955d0fe6 to your computer and use it in GitHub Desktop.
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import '@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol';
import '@openzeppelin/contracts/access/Ownable.sol';
contract PaperCats is ERC721Enumerable, Ownable {
string _baseTokenURI;
constructor(string memory baseURI) ERC721("Paper Cats", "PCATS") {
setBaseURI(baseURI);
}
function _baseURI() internal view virtual override returns (string memory) {
return _baseTokenURI;
}
function setBaseURI(string memory baseURI) public onlyOwner {
_baseTokenURI = baseURI;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment