ソースを参照

docs: add note about vscode-solidity extension

feat: upgrade to solc@0.8.3
Paul Razvan Berg 4 年 前
コミット
baee203b23
4 ファイル変更19 行追加19 行削除
  1. 17 0
      README.md
  2. 1 1
      hardhat.config.ts
  3. 1 3
      package.json
  4. 0 15
      yarn.lock

+ 17 - 0
README.md

@@ -78,3 +78,20 @@ Delete the smart contract artifacts, the coverage reports and the Hardhat cache:
 ```sh
 $ yarn clean
 ```
+
+## Syntax Highlighting
+
+If you use VSCode, you can enjoy syntax highlighting for your Solidity code via the
+[vscode-solidity](https://github.com/juanfranblanco/vscode-solidity) extension. The recommended approach to set the
+compiler version is to add the following fields to your VSCode user settings:
+
+```json
+{
+  ...
+  "solidity.compileUsingRemoteVersion": "v0.8.3+commit.8d00100c",
+  "solidity.defaultCompiler": "remote",
+  ...
+}
+```
+
+Where of course `v0.8.3+commit.8d00100c` can be replaced with any other version.

+ 1 - 1
hardhat.config.ts

@@ -73,7 +73,7 @@ const config: HardhatUserConfig = {
     tests: "./test",
   },
   solidity: {
-    version: "0.8.1",
+    version: "0.8.3",
     settings: {
       metadata: {
         // Do not include the metadata hash, since this is machine dependent and we want

+ 1 - 3
package.json

@@ -6,9 +6,7 @@
     "name": "Paul Razvan Berg",
     "url": "https://paulrberg.com"
   },
-  "dependencies": {
-    "solc": "0.8.1"
-  },
+  "dependencies": {},
   "devDependencies": {
     "@commitlint/cli": "^9.1.2",
     "@commitlint/config-conventional": "^9.1.2",

+ 0 - 15
yarn.lock

@@ -8645,21 +8645,6 @@ solc@0.7.3:
     semver "^5.5.0"
     tmp "0.0.33"
 
-solc@0.8.1:
-  version "0.8.1"
-  resolved "https://registry.npmjs.org/solc/-/solc-0.8.1.tgz#cbdba8fea6fbfae463f382cecb59c51de0269472"
-  integrity sha512-rqB8wlL20I/k+ibCgNGqXaoXBngKTUb3JCsCazwEvxJ9C9RcXNGRsiqgB1xZs37IjINMp0E3xGiuMjGYTBQnUg==
-  dependencies:
-    command-exists "^1.2.8"
-    commander "3.0.2"
-    follow-redirects "^1.12.1"
-    fs-extra "^0.30.0"
-    js-sha3 "0.8.0"
-    memorystream "^0.3.1"
-    require-from-string "^2.0.0"
-    semver "^5.5.0"
-    tmp "0.0.33"
-
 solc@^0.4.20:
   version "0.4.26"
   resolved "https://registry.yarnpkg.com/solc/-/solc-0.4.26.tgz#5390a62a99f40806b86258c737c1cf653cc35cb5"