Created
July 12, 2022 01:02
-
-
Save KBPsystem777/ebe31558a8c70d3cd0aaedc3ef3864a3 to your computer and use it in GitHub Desktop.
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=undefined&optimize=false&runs=200&gist=
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
// @author Koleen BP - [email protected], https://koleenbp.com | |
pragma solidity ^0.8.4; | |
import "erc721a/contracts/ERC721A.sol"; | |
contract AIArtKBPsystem is ERC721A { | |
constructor() ERC721A("AI Images for KBPsystem", "KBP-AI") {} | |
function mint(uint256 quantity) external payable { | |
// `_mint`'s second argument now takes in a `quantity`, not a `tokenId`. | |
_mint(msg.sender, quantity); | |
} | |
function _baseURI() override internal view virtual returns (string memory) { | |
return "ipfs://bafybeibljld7fa7aib2ajx7rmao5itn6xoucv6yjszl2brbb2ocmqxf7yq/"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment