mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 17:33:47 +00:00
hardhatupdate
This commit is contained in:
parent
842dbc0432
commit
0ba548945f
3 changed files with 21 additions and 0 deletions
10
hardhat/contracts/Token.sol
Normal file
10
hardhat/contracts/Token.sol
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
// SPDX-License-Identifier: MIT
|
||||
pragma solidity ^0.8.28;
|
||||
|
||||
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
|
||||
|
||||
contract Token is ERC20 {
|
||||
constructor() ERC20("MyToken", "MTK") {
|
||||
_mint(msg.sender, 1000 * 10 ** decimals());
|
||||
}
|
||||
}
|
||||
8
hardhat/package-lock.json
generated
8
hardhat/package-lock.json
generated
|
|
@ -8,6 +8,9 @@
|
|||
"name": "go-ethereum",
|
||||
"version": "1.0.0",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@openzeppelin/contracts": "^5.1.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@nomicfoundation/hardhat-toolbox": "^5.0.0",
|
||||
"hardhat": "^2.22.17"
|
||||
|
|
@ -1599,6 +1602,11 @@
|
|||
"node": ">= 12"
|
||||
}
|
||||
},
|
||||
"node_modules/@openzeppelin/contracts": {
|
||||
"version": "5.1.0",
|
||||
"resolved": "https://registry.npmjs.org/@openzeppelin/contracts/-/contracts-5.1.0.tgz",
|
||||
"integrity": "sha512-p1ULhl7BXzjjbha5aqst+QMLY+4/LCWADXOCsmLHRM77AqiPjnd9vvUN9sosUfhL9JGKpZ0TjEGxgvnizmWGSA=="
|
||||
},
|
||||
"node_modules/@scure/base": {
|
||||
"version": "1.1.9",
|
||||
"resolved": "https://registry.npmjs.org/@scure/base/-/base-1.1.9.tgz",
|
||||
|
|
|
|||
|
|
@ -16,5 +16,8 @@
|
|||
"devDependencies": {
|
||||
"@nomicfoundation/hardhat-toolbox": "^5.0.0",
|
||||
"hardhat": "^2.22.17"
|
||||
},
|
||||
"dependencies": {
|
||||
"@openzeppelin/contracts": "^5.1.0"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue