Browse Source

fix: set compiler pragma to v0.8.4 min

feat: upgrade to solc@0.8.5
Paul Razvan Berg 4 years ago
parent
commit
2625524b96
3 changed files with 3 additions and 3 deletions
  1. 1 1
      .solhint.json
  2. 1 1
      contracts/Greeter.sol
  3. 1 1
      hardhat.config.ts

+ 1 - 1
.solhint.json

@@ -3,7 +3,7 @@
   "plugins": ["prettier"],
   "plugins": ["prettier"],
   "rules": {
   "rules": {
     "code-complexity": ["error", 7],
     "code-complexity": ["error", 7],
-    "compiler-version": ["error", ">=0.8.0"],
+    "compiler-version": ["error", ">=0.8.4"],
     "const-name-snakecase": "off",
     "const-name-snakecase": "off",
     "constructor-syntax": "error",
     "constructor-syntax": "error",
     "func-visibility": ["error", { "ignoreConstructors": true }],
     "func-visibility": ["error", { "ignoreConstructors": true }],

+ 1 - 1
contracts/Greeter.sol

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: MIT
 // SPDX-License-Identifier: MIT
-pragma solidity >=0.8.0;
+pragma solidity >=0.8.4;
 
 
 import "hardhat/console.sol";
 import "hardhat/console.sol";
 
 

+ 1 - 1
hardhat.config.ts

@@ -76,7 +76,7 @@ const config: HardhatUserConfig = {
     tests: "./test",
     tests: "./test",
   },
   },
   solidity: {
   solidity: {
-    version: "0.8.4",
+    version: "0.8.5",
     settings: {
     settings: {
       metadata: {
       metadata: {
         // Not including the metadata hash
         // Not including the metadata hash