From 372c2ab291fe3098b5fe43e3b64047e176656b9b Mon Sep 17 00:00:00 2001 From: Cyrille Derche Date: Wed, 31 Jul 2024 10:04:54 +0200 Subject: [PATCH] formatting --- contracts/OIDPermissionManager.sol | 2 -- contracts/OIDResolver.sol | 5 ++--- test/OIDResolver.ts | 24 ++++++++++++------------ 3 files changed, 14 insertions(+), 17 deletions(-) diff --git a/contracts/OIDPermissionManager.sol b/contracts/OIDPermissionManager.sol index d3cd4d0..d4ee5e2 100644 --- a/contracts/OIDPermissionManager.sol +++ b/contracts/OIDPermissionManager.sol @@ -3,8 +3,6 @@ pragma solidity 0.8.26; import {IOIDPermissionManager} from "./IOIDPermissionManager.sol"; -import "hardhat/console.sol"; - contract OIDPermissionManager is IOIDPermissionManager { mapping(string => mapping(address => bool)) private permissions; diff --git a/contracts/OIDResolver.sol b/contracts/OIDResolver.sol index b5ffd30..515cc50 100644 --- a/contracts/OIDResolver.sol +++ b/contracts/OIDResolver.sol @@ -1,14 +1,13 @@ // SPDX-License-Identifier: UNLICENSED pragma solidity 0.8.26; +// solhint-disable-next-line max-line-length +import {AccessManagedUpgradeable} from "@openzeppelin/contracts-upgradeable/access/manager/AccessManagedUpgradeable.sol"; import {IEAS} from "@ethereum-attestation-service/eas-contracts/contracts/IEAS.sol"; import {Attestation} from "@ethereum-attestation-service/eas-contracts/contracts/Common.sol"; import {SchemaResolver} from "@ethereum-attestation-service/eas-contracts/contracts/resolver/SchemaResolver.sol"; -import {AccessManagedUpgradeable} from "@openzeppelin/contracts-upgradeable/access/manager/AccessManagedUpgradeable.sol"; import {IAccessManager} from "@openzeppelin/contracts/access/manager/IAccessManager.sol"; -import "hardhat/console.sol"; - contract OIDResolver is SchemaResolver, AccessManagedUpgradeable { error UnauthorizedAttester(address attester); diff --git a/test/OIDResolver.ts b/test/OIDResolver.ts index cd870b8..0e72f4d 100644 --- a/test/OIDResolver.ts +++ b/test/OIDResolver.ts @@ -1,30 +1,30 @@ +import { + type Attestation, + type AttestationRequest, + EAS, + NO_EXPIRATION, + SchemaEncoder, + SchemaRegistry, + ZERO_BYTES32, +} from "@ethereum-attestation-service/eas-sdk"; import { loadFixture } from "@nomicfoundation/hardhat-toolbox-viem/network-helpers"; import { expect } from "chai"; +import { BrowserProvider, JsonRpcSigner } from "ethers"; import hre from "hardhat"; import { type Account, type Address, type Chain, type Client, + type Transport, + type TypedDataDomain, decodeAbiParameters, encodeAbiParameters, getAddress, parseSignature, - type Transport, - type TypedDataDomain, zeroHash, } from "viem"; import { generatePrivateKey, privateKeyToAccount } from "viem/accounts"; -import { - type Attestation, - EAS, - SchemaEncoder, - SchemaRegistry, - type AttestationRequest, - ZERO_BYTES32, - NO_EXPIRATION, -} from "@ethereum-attestation-service/eas-sdk"; -import { BrowserProvider, JsonRpcSigner } from "ethers"; const ATTESTER_ROLE = 1n;