Skip to content

Instantly share code, notes, and snippets.

View tina1998612's full-sized avatar
:octocat:
DigitalNomad

李婷婷 Lee Ting Ting tina1998612

:octocat:
DigitalNomad
View GitHub Profile
let abi = [
{
inputs: [
{
internalType: "string",
name: "_name",
type: "string",
},
{
internalType: "string",
@tina1998612
tina1998612 / nft_tutorial.sol
Created October 17, 2023 11:31
NFT Tutorial Lee Ting Ting
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
import "@openzeppelin/[email protected]/token/ERC721/ERC721.sol";
import "@openzeppelin/[email protected]/access/Ownable.sol";
contract MyToken is ERC721, Ownable {
constructor() ERC721("MyToken", "MTK") {}
function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
{"name":"TinaNFT","description":"lalala","image":"your_photo_url"}