Browse Source

style: sort imports with vscode extension

Paul Razvan Berg 4 năm trước cách đây
mục cha
commit
fdd57f4853
2 tập tin đã thay đổi với 10 bổ sung8 xóa
  1. 9 7
      hardhat.config.ts
  2. 1 1
      scripts/deploy.ts

+ 9 - 7
hardhat.config.ts

@@ -1,15 +1,17 @@
-import { config as dotenvConfig } from "dotenv";
+import "@nomiclabs/hardhat-waffle";
+import "hardhat-typechain";
+import "solidity-coverage";
+
+import "./tasks/accounts";
+import "./tasks/clean";
+
 import { resolve } from "path";
 import { resolve } from "path";
-dotenvConfig({ path: resolve(__dirname, "./.env") });
 
 
+import { config as dotenvConfig } from "dotenv";
 import { HardhatUserConfig } from "hardhat/config";
 import { HardhatUserConfig } from "hardhat/config";
 import { NetworkUserConfig } from "hardhat/types";
 import { NetworkUserConfig } from "hardhat/types";
-import "./tasks/accounts";
-import "./tasks/clean";
 
 
-import "@nomiclabs/hardhat-waffle";
-import "hardhat-typechain";
-import "solidity-coverage";
+dotenvConfig({ path: resolve(__dirname, "./.env") });
 
 
 const chainIds = {
 const chainIds = {
   ganache: 1337,
   ganache: 1337,

+ 1 - 1
scripts/deploy.ts

@@ -1,9 +1,9 @@
+import { Contract, ContractFactory } from "ethers";
 // We require the Hardhat Runtime Environment explicitly here. This is optional
 // We require the Hardhat Runtime Environment explicitly here. This is optional
 // but useful for running the script in a standalone fashion through `node <script>`.
 // but useful for running the script in a standalone fashion through `node <script>`.
 // When running the script with `hardhat run <script>` you'll find the Hardhat
 // When running the script with `hardhat run <script>` you'll find the Hardhat
 // Runtime Environment's members available in the global scope.
 // Runtime Environment's members available in the global scope.
 import { ethers } from "hardhat";
 import { ethers } from "hardhat";
-import { Contract, ContractFactory } from "ethers";
 
 
 async function main(): Promise<void> {
 async function main(): Promise<void> {
   // Hardhat always runs the compile task when running scripts through it.
   // Hardhat always runs the compile task when running scripts through it.