Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
cyri113 committed Jul 31, 2024
1 parent 54e403a commit 372c2ab
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 17 deletions.
2 changes: 0 additions & 2 deletions contracts/OIDPermissionManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
5 changes: 2 additions & 3 deletions contracts/OIDResolver.sol
Original file line number Diff line number Diff line change
@@ -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);

Expand Down
24 changes: 12 additions & 12 deletions test/OIDResolver.ts
Original file line number Diff line number Diff line change
@@ -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;

Expand Down

0 comments on commit 372c2ab

Please sign in to comment.