Skip to content

Instantly share code, notes, and snippets.

@shobhitic
Last active October 4, 2023 17:59
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save shobhitic/a39880040da424032a3cafe6c99bcdb5 to your computer and use it in GitHub Desktop.
Save shobhitic/a39880040da424032a3cafe6c99bcdb5 to your computer and use it in GitHub Desktop.
Bulk Upload NFTs to Opensea and other marketplaces through blockchain - https://www.youtube.com/watch?v=wxynC7aL5k8
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.15;
import "erc721a/contracts/ERC721A.sol";
contract MyNFT is ERC721A {
constructor() ERC721A("MyNFT", "MNFT") {}
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://bafybeifgxh2lo3jpx6xg2bl3wlnifgpahcdvmktl42jz7d7m7x7y6yap3i/";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment