From bf32bca170898243454070c98395e9d52b9aa4a1 Mon Sep 17 00:00:00 2001 From: Builddddder Date: Mon, 23 Oct 2023 14:51:46 +0800 Subject: [PATCH] Fix lint issues --- contracts/src/examples/modules/ERC1271Module.sol | 8 ++------ contracts/test/example/ERC1271Module.t.sol | 2 -- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/contracts/src/examples/modules/ERC1271Module.sol b/contracts/src/examples/modules/ERC1271Module.sol index 2aac4a11..80fbc63b 100644 --- a/contracts/src/examples/modules/ERC1271Module.sol +++ b/contracts/src/examples/modules/ERC1271Module.sol @@ -1,14 +1,9 @@ // SPDX-License-Identifier: MIT pragma solidity 0.8.21; -import { ECDSA } from "openzeppelin-contracts/contracts/utils/cryptography/ECDSA.sol"; -import { Strings } from "openzeppelin-contracts/contracts/utils/Strings.sol"; - import { AbstractModule } from "../interface/AbstractModule.sol"; import { AttestationPayload } from "../types/Structs.sol"; -import "forge-std/console.sol"; - contract ERC1271Module is AbstractModule { address public owner; constructor(address _owner) { @@ -77,6 +72,7 @@ contract ERC1271Module is AbstractModule { uint256 nonce = abi.decode(attestationPayload.attestationData, (uint256)); bytes memory message = abi.encodePacked(signee, nonce); bytes32 digest = keccak256(bytes.concat("\x19Ethereum Signed Message:\n", message)); - require(isValidSignature(digest, validationPayload) == 0x1626ba7e, "SignatureValidator#isValidSignature: INVALID_SIGNER"); + require(isValidSignature(digest, validationPayload) == 0x1626ba7e, + "SignatureValidator#isValidSignature: INVALID_SIGNER"); } } diff --git a/contracts/test/example/ERC1271Module.t.sol b/contracts/test/example/ERC1271Module.t.sol index 2089d57c..76c66368 100644 --- a/contracts/test/example/ERC1271Module.t.sol +++ b/contracts/test/example/ERC1271Module.t.sol @@ -2,11 +2,9 @@ pragma solidity 0.8.21; import { Test } from "forge-std/Test.sol"; -import { ECDSA } from "openzeppelin-contracts/contracts/utils/cryptography/ECDSA.sol"; import { AbstractModule } from "../../src/interface/AbstractModule.sol"; import { ERC1271Module } from "../../src/example/ERC1271Module.sol"; import { AttestationPayload } from "../../src/types/Structs.sol"; -import "forge-std/console.sol"; contract ERC1271ModuleTest is Test { ERC1271Module private erc1271Module;