hardhatupdate

This commit is contained in:
Nikola 2025-01-06 23:44:55 +02:00
parent 842dbc0432
commit 0ba548945f
3 changed files with 21 additions and 0 deletions

View 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());
}
}

View file

@ -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",

View file

@ -16,5 +16,8 @@
"devDependencies": {
"@nomicfoundation/hardhat-toolbox": "^5.0.0",
"hardhat": "^2.22.17"
},
"dependencies": {
"@openzeppelin/contracts": "^5.1.0"
}
}