Skip to content

Commit 0ba5489

Browse files
committed
hardhatupdate
1 parent 842dbc0 commit 0ba5489

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

hardhat/contracts/Token.sol

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// SPDX-License-Identifier: MIT
2+
pragma solidity ^0.8.28;
3+
4+
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
5+
6+
contract Token is ERC20 {
7+
constructor() ERC20("MyToken", "MTK") {
8+
_mint(msg.sender, 1000 * 10 ** decimals());
9+
}
10+
}

hardhat/package-lock.json

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

hardhat/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,8 @@
1616
"devDependencies": {
1717
"@nomicfoundation/hardhat-toolbox": "^5.0.0",
1818
"hardhat": "^2.22.17"
19+
},
20+
"dependencies": {
21+
"@openzeppelin/contracts": "^5.1.0"
1922
}
2023
}

0 commit comments

Comments
 (0)