Skip to content

Commit

Permalink
refactor: remove console.log in contract
Browse files Browse the repository at this point in the history
  • Loading branch information
yk-saito committed Nov 24, 2023
1 parent c14de9d commit c0d9139
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/contract/contracts/Web3Mint.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import '@openzeppelin/contracts/token/ERC721/ERC721.sol';
import '@openzeppelin/contracts/utils/Counters.sol';

import './libraries/Base64.sol';
import 'hardhat/console.sol';

contract Web3Mint is ERC721 {
struct NftAttributes {
Expand All @@ -20,17 +19,14 @@ contract Web3Mint is ERC721 {
// tokenIdはNFTの一意な識別子で、0, 1, 2, .. N のように付与されます。
Counters.Counter private _tokenIds;

constructor() ERC721('NFT', 'nft') {
console.log('This is my NFT contract.');
}
constructor() ERC721('NFT', 'nft') {}

// ユーザーが NFT を取得するために実行する関数です。

function mintIpfsNFT(string memory name, string memory imageURI) public {
uint256 newItemId = _tokenIds.current();
_safeMint(msg.sender, newItemId);
Web3Nfts.push(NftAttributes({name: name, imageURL: imageURI}));
console.log('An NFT w/ ID %s has been minted to %s', newItemId, msg.sender);
_tokenIds.increment();
}

Expand Down

0 comments on commit c0d9139

Please sign in to comment.