---
# System prepended metadata

title: Untitled

---

基本第一題 Savanna

```
// contracts/GameItem.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/Counters.sol";

contract MyNFT is ERC721 {
    constructor() ERC721("Savanna", "SAVN") {}

    function mint(uint256 tokenId) public {
        _safeMint(msg.sender, tokenId);
    }
}

```
![](https://i.imgur.com/jBRFxvQ.png)


- gist link: gist:a3f4d2e3cf57137b646214ebfe085933


基本第二題

https://gist.github.com/savanna7777/1c548ca73afd3f66ac335245e4866a50
![](https://i.imgur.com/eqPBLOF.png)
![](https://i.imgur.com/0iWCDUh.png)
https://gist.github.com/savanna7777/2e61417350f41637dea5a6dd04781023


合約地址： 0xec917c0dB88b9bC704F1FF465Bb05aE3f237b705
發 NFT 原始碼：https://gist.github.com/savanna7777/ba873638850de0badb27ed5ad4b1fae1

