From 0d7d39152189d72399cab9120528d03fbbc6027e Mon Sep 17 00:00:00 2001 From: ra-phael <10075759+ra-phael@users.noreply.github.com> Date: Wed, 29 Nov 2023 09:46:44 +0000 Subject: [PATCH] prettier --- .prettierrc.yml | 2 +- tasks/deploy/prepareUpgrade.ts | 2 +- tasks/deploy/proposeUpgradeWithApproval.ts | 4 ++-- tasks/index.ts | 2 +- test/utils/generateAccessToken.ts | 2 +- test/violetID/VID.behavior.ts | 4 ++-- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.prettierrc.yml b/.prettierrc.yml index 11db8a8..4c49705 100644 --- a/.prettierrc.yml +++ b/.prettierrc.yml @@ -8,7 +8,7 @@ trailingComma: "all" overrides: - files: "*.sol" options: - compiler: "0.8.17" + compiler: "0.8.20" tabWidth: 4 - files: "*.ts" options: diff --git a/tasks/deploy/prepareUpgrade.ts b/tasks/deploy/prepareUpgrade.ts index eecf103..4ca3741 100644 --- a/tasks/deploy/prepareUpgrade.ts +++ b/tasks/deploy/prepareUpgrade.ts @@ -1,6 +1,6 @@ +import { ContractFactory } from "ethers"; import { task } from "hardhat/config"; import type { TaskArguments } from "hardhat/types"; -import { ContractFactory } from "ethers"; // 💡 Make sure to delete /artifacts and /cache and then run `yarn compile` before running this task, // and that you have specified the right Etherscan API key in .env. diff --git a/tasks/deploy/proposeUpgradeWithApproval.ts b/tasks/deploy/proposeUpgradeWithApproval.ts index 64b4fa9..41d4466 100644 --- a/tasks/deploy/proposeUpgradeWithApproval.ts +++ b/tasks/deploy/proposeUpgradeWithApproval.ts @@ -9,8 +9,8 @@ task("proposeUpgradeWithApproval").setAction(async function (_taskArguments: Tas "0xE62C5A18Fb0e5f9b01bE9fAc679040e142e0e1FC", "VioletIDv1_4_0", { - approvalProcessId: "95f8f653-1112-419a-ba23-bbc22dd5120a" - } + approvalProcessId: "95f8f653-1112-419a-ba23-bbc22dd5120a", + }, ); console.log(response); } catch (error) { diff --git a/tasks/index.ts b/tasks/index.ts index b9dcda7..1b86252 100644 --- a/tasks/index.ts +++ b/tasks/index.ts @@ -1,11 +1,11 @@ import accounts from "./accounts"; +import prepareUpgrade from "./deploy/prepareUpgrade"; import proposeUpgradeWithApproval from "./deploy/proposeUpgradeWithApproval"; import validate from "./deploy/validate"; import validateUpgradeSafety from "./deploy/validateUpgradeSafety"; import deployVioletID from "./deploy/violetID"; import grantRole from "./grantRole"; import renounceRole from "./renounceRole"; -import prepareUpgrade from "./deploy/prepareUpgrade"; export { prepareUpgrade, diff --git a/test/utils/generateAccessToken.ts b/test/utils/generateAccessToken.ts index 359d97d..68af07f 100644 --- a/test/utils/generateAccessToken.ts +++ b/test/utils/generateAccessToken.ts @@ -1,6 +1,6 @@ import { SignerWithAddress } from "@nomicfoundation/hardhat-ethers/signers"; import { messages, utils } from "@violetprotocol/ethereum-access-token-helpers"; -import { BigNumberish, Contract, Wallet, Signature, getAddress } from "ethers"; +import { BigNumberish, Contract, Signature, Wallet, getAddress } from "ethers"; import { VioletIDv1_4_0 } from "../../src/types"; diff --git a/test/violetID/VID.behavior.ts b/test/violetID/VID.behavior.ts index 5de3b04..46cd4c0 100644 --- a/test/violetID/VID.behavior.ts +++ b/test/violetID/VID.behavior.ts @@ -1,10 +1,10 @@ import { expect } from "chai"; import { ZeroAddress, id } from "ethers"; +import { ethers } from "hardhat"; +import { VioletIDv1_4_0, VioletIDv1_4_0__factory } from "../../src/types"; import { generateAccessToken } from "../utils/generateAccessToken"; import { getStatusCombinationId } from "../utils/getStatusCombinationId"; -import { ethers } from "hardhat"; -import { VioletIDv1_4_0, VioletIDv1_4_0__factory } from "../../src/types"; enum Status { REGISTERED_WITH_VIOLET = 1,