From 0e2a0ec9438edec6441903ae5db5587c88a8458d Mon Sep 17 00:00:00 2001 From: howzus Date: Sun, 10 Apr 2022 10:41:57 +0200 Subject: [PATCH 1/2] Update complier Otherwise tutorial fails to compile with latest package install --- docs/tutorial/creating-a-new-hardhat-project.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/docs/tutorial/creating-a-new-hardhat-project.md b/docs/tutorial/creating-a-new-hardhat-project.md index 16d8da79d0..4450b58384 100644 --- a/docs/tutorial/creating-a-new-hardhat-project.md +++ b/docs/tutorial/creating-a-new-hardhat-project.md @@ -79,7 +79,19 @@ require("@nomiclabs/hardhat-waffle"); * @type import('hardhat/config').HardhatUserConfig */ module.exports = { - solidity: "0.7.3", + solidity: { + compilers: [ + { + version: "0.8.4", + settings: { + optimizer: { + enabled: true, + runs: 200, + }, + }, + }, + ], + }, }; ``` From 141ce9f73295a0f1f1f7f9eff536cd64ee212c7f Mon Sep 17 00:00:00 2001 From: howzus Date: Thu, 28 Apr 2022 09:58:57 +0200 Subject: [PATCH 2/2] Update docs/tutorial/creating-a-new-hardhat-project.md Co-authored-by: Patricio Palladino --- docs/tutorial/creating-a-new-hardhat-project.md | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/docs/tutorial/creating-a-new-hardhat-project.md b/docs/tutorial/creating-a-new-hardhat-project.md index 4450b58384..f7b9ebfe32 100644 --- a/docs/tutorial/creating-a-new-hardhat-project.md +++ b/docs/tutorial/creating-a-new-hardhat-project.md @@ -79,19 +79,7 @@ require("@nomiclabs/hardhat-waffle"); * @type import('hardhat/config').HardhatUserConfig */ module.exports = { - solidity: { - compilers: [ - { - version: "0.8.4", - settings: { - optimizer: { - enabled: true, - runs: 200, - }, - }, - }, - ], - }, + solidity: "0.8.4", }; ```