File tree Expand file tree Collapse file tree 4 files changed +240
-70
lines changed Expand file tree Collapse file tree 4 files changed +240
-70
lines changed Original file line number Diff line number Diff line change 11//SPDX-License-Identifier: MIT
2- pragma solidity >= 0.6.0 < 0.8.0 ;
2+ pragma solidity >= 0.6.2 ;
33
44import "@openzeppelin/contracts/token/ERC20/ERC20.sol " ;
55import "@openzeppelin/contracts/access/Ownable.sol " ;
@@ -10,7 +10,7 @@ contract ExampleERC20 is ERC20, Ownable {
1010
1111 uint256 private constant TOTAL_SUPPLY = 123456789 ;
1212
13- constructor () public ERC20 (TOKEN_NAME, TOKEN_SYMBOL) {
13+ constructor ()ERC20 (TOKEN_NAME, TOKEN_SYMBOL) {
1414 _mint (msg .sender , TOTAL_SUPPLY);
1515 }
1616
Original file line number Diff line number Diff line change @@ -10,9 +10,11 @@ contract NFT is ERC721 {
1010 using Counters for Counters.Counter;
1111 Counters.Counter private _tokenIds;
1212
13- constructor () public ERC721 ("GameItem " , "ITM " ) {}
13+ constructor () ERC721 ("GameItem " , "ITM " ) {}
1414
15- function awardItem (address player , string memory tokenURI )
15+ // commented out unused variable
16+ // function awardItem(address player, string memory tokenURI)
17+ function awardItem (address player )
1618 public
1719 returns (uint256 )
1820 {
Original file line number Diff line number Diff line change 11{
22 "name" : " avalanche-smart-contract-quickstart" ,
33 "devDependencies" : {
4- "@nomiclabs/hardhat-ethers" : " ^2.0.1 " ,
4+ "@nomiclabs/hardhat-ethers" : " ^2.0.2 " ,
55 "@nomiclabs/hardhat-waffle" : " ^2.0.1" ,
6- "@openzeppelin/contracts" : " ^3.4 .0" ,
7- "@types/chai" : " ^4.2.18 " ,
8- "@types/mocha" : " ^8.2.2 " ,
9- "@types/node" : " ^15.6.0 " ,
10- "avalanche" : " 3.8.1 " ,
6+ "@openzeppelin/contracts" : " ^4.3 .0" ,
7+ "@types/chai" : " ^4.2.21 " ,
8+ "@types/mocha" : " ^9.0.0 " ,
9+ "@types/node" : " ^16.7.1 " ,
10+ "avalanche" : " 3.8.5 " ,
1111 "chai" : " ^4.3.4" ,
12- "ethereum-waffle" : " ^3.2.1 " ,
12+ "ethereum-waffle" : " ^3.4.0 " ,
1313 "ethereumjs-tx" : " ^2.1.2" ,
14- "ethers" : " ^5.0.24 " ,
15- "hardhat" : " 2.4.3 " ,
16- "ts-node" : " ^9.1 .1" ,
17- "web3" : " ^1.3.1 "
14+ "ethers" : " ^5.4.5 " ,
15+ "hardhat" : " 2.6.1 " ,
16+ "ts-node" : " ^10.2 .1" ,
17+ "web3" : " ^1.5.2 "
1818 },
1919 "version" : " 1.0.0" ,
2020 "description" : " " ,
4545 "fund-cchain-addresses" : " npx hardhat run scripts/fund-cchain-addresses.js"
4646 },
4747 "dependencies" : {
48- "typescript" : " ^4.2.4 "
48+ "typescript" : " ^4.3.5 "
4949 },
5050 "engines" : {
5151 "node" : " >=14.17.0"
You can’t perform that action at this time.
0 commit comments