Greeting removal

This commit is contained in:
Keshav Gupta 2022-06-23 15:52:00 +02:00
parent ffc962b472
commit 55587b0c3a
4 changed files with 30555 additions and 39 deletions

View File

@ -1,22 +0,0 @@
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;
import "hardhat/console.sol";
contract Greeter {
string private greeting;
constructor(string memory _greeting) {
console.log("Deploying a Greeter with greeting:", _greeting);
greeting = _greeting;
}
function greet() public view returns (string memory) {
return greeting;
}
function setGreeting(string memory _greeting) public {
console.log("Changing greeting from '%s' to '%s'", greeting, _greeting);
greeting = _greeting;
}
}

View File

@ -1,9 +1,7 @@
import * as dotenv from "dotenv"; import * as dotenv from "dotenv";
import { HardhatUserConfig, task } from "hardhat/config"; import { HardhatUserConfig, task } from "hardhat/config";
import "@nomiclabs/hardhat-etherscan";
import "@nomiclabs/hardhat-waffle"; import "@nomiclabs/hardhat-waffle";
import "@typechain/hardhat";
import "hardhat-gas-reporter"; import "hardhat-gas-reporter";
import "solidity-coverage"; import "solidity-coverage";
@ -23,21 +21,7 @@ task("accounts", "Prints the list of accounts", async (taskArgs, hre) => {
// Go to https://hardhat.org/config/ to learn more // Go to https://hardhat.org/config/ to learn more
const config: HardhatUserConfig = { const config: HardhatUserConfig = {
solidity: "0.8.4", solidity: "0.7.4"
networks: {
ropsten: {
url: process.env.ROPSTEN_URL || "",
accounts:
process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
},
},
gasReporter: {
enabled: process.env.REPORT_GAS !== undefined,
currency: "USD",
},
etherscan: {
apiKey: process.env.ETHERSCAN_API_KEY,
},
}; };
export default config; export default config;

30542
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,19 @@
{ {
"name": "hardhat-project", "name": "hardhat-project",
"devDependencies": { "devDependencies": {
"@nomiclabs/hardhat-ethers": "^2.0.6",
"@nomiclabs/hardhat-etherscan": "^3.1.0",
"@nomiclabs/hardhat-waffle": "^2.0.3",
"chai": "^4.3.6",
"ethereum-waffle": "^3.4.4",
"ethers": "^5.6.9",
"hardhat": "^2.9.9", "hardhat": "^2.9.9",
"hardhat-gas-reporter": "^1.0.8",
"solidity-coverage": "^0.7.21",
"ts-node": "^10.8.1",
"typescript": "^4.7.4" "typescript": "^4.7.4"
},
"dependencies": {
"dotenv": "^16.0.1"
} }
} }