Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Builddddder committed Oct 23, 2023
1 parent e5bb7f8 commit bf32bca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 2 additions & 6 deletions contracts/src/examples/modules/ERC1271Module.sol
Original file line number Diff line number Diff line change
@@ -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) {
Expand Down Expand Up @@ -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");
}
}
2 changes: 0 additions & 2 deletions contracts/test/example/ERC1271Module.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit bf32bca

Please sign in to comment.