This file contains 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: GPL-3.0 | |
pragma solidity >=0.8.2 <0.9.0; | |
/** | |
* @title Storage | |
* @dev Store & retrieve value in a variable | |
* @custom:dev-run-script ./scripts/deploy_with_ethers.ts | |
*/ | |
contract GuessNumber { |
This file contains 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 | |
pragma solidity >=0.8.4; | |
import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; | |
contract PaulToken is ERC20{ | |
uint256 public initialSupply = 10000; |
This file contains 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 | |
pragma solidity >=0.8.4; | |
import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; | |
contract PaulToken is ERC20{ | |
constructor () ERC20 ("PaulToken", "PT"){} |
This file contains 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 | |
pragma solidity >= 0.8.4; | |
import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; | |
contract PaulNFT is ERC721{ | |
constructor() ERC721("PaulNFT", "Paul"){ | |
} |