Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Add EIP-173 Ownable interface #29

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion contracts/Minty.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ pragma solidity ^0.7.0;
import "hardhat/console.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

contract Minty is ERC721 {
contract Minty is ERC721, Ownable {
using Counters for Counters.Counter;
Counters.Counter private _tokenIds;

Expand All @@ -15,6 +16,7 @@ contract Minty is ERC721 {

function mintToken(address owner, string memory metadataURI)
public
onlyOwner
returns (uint256)
{
_tokenIds.increment();
Expand Down