Skip to content

Commit

Permalink
Make AccountSignerERC7702 draft and adjust mocks (#41)
Browse files Browse the repository at this point in the history
* Make AccountERC7702 draft and adjust mocks

* Fix compilation
  • Loading branch information
ernestognw authored Dec 17, 2024
1 parent c205b41 commit 7ff2225
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion contracts/mocks/account/AccountERC7702Mock.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
pragma solidity ^0.8.20;

import {Account} from "../../account/draft-Account.sol";
import {AccountSignerERC7702} from "../../account/extensions/AccountSignerERC7702.sol";
import {AccountSignerERC7702} from "../../account/extensions/draft-AccountSignerERC7702.sol";

abstract contract AccountERC7702Mock is Account, AccountSignerERC7702 {}
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ pragma solidity ^0.8.20;

import {ECDSA} from "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import {EIP712} from "@openzeppelin/contracts/utils/cryptography/EIP712.sol";
import {ERC7739Signer} from "../../../../utils/cryptography/draft-ERC7739Signer.sol";
import {SignerECDSA} from "../../../../utils/cryptography/SignerECDSA.sol";
import {ERC7739Signer} from "../../../utils/cryptography/draft-ERC7739Signer.sol";
import {SignerECDSA} from "../../../utils/cryptography/SignerECDSA.sol";

contract ERC7739SignerECDSAMock is ERC7739Signer, SignerECDSA {
constructor(address signerAddr) EIP712("ERC7739SignerECDSA", "1") {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
pragma solidity ^0.8.20;

import {EIP712} from "@openzeppelin/contracts/utils/cryptography/EIP712.sol";
import {ERC7739Signer} from "../../../../utils/cryptography/draft-ERC7739Signer.sol";
import {SignerP256} from "../../../../utils/cryptography/SignerP256.sol";
import {ERC7739Signer} from "../../../utils/cryptography/draft-ERC7739Signer.sol";
import {SignerP256} from "../../../utils/cryptography/SignerP256.sol";

contract ERC7739SignerP256Mock is ERC7739Signer, SignerP256 {
constructor(bytes32 qx, bytes32 qy) EIP712("ERC7739SignerP256", "1") {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
pragma solidity ^0.8.20;

import {EIP712} from "@openzeppelin/contracts/utils/cryptography/EIP712.sol";
import {ERC7739Signer} from "../../../../utils/cryptography/draft-ERC7739Signer.sol";
import {SignerRSA} from "../../../../utils/cryptography/SignerRSA.sol";
import {ERC7739Signer} from "../../../utils/cryptography/draft-ERC7739Signer.sol";
import {SignerRSA} from "../../../utils/cryptography/SignerRSA.sol";

contract ERC7739SignerRSAMock is ERC7739Signer, SignerRSA {
constructor(bytes memory e, bytes memory n) EIP712("ERC7739SignerRSA", "1") {
Expand Down

0 comments on commit 7ff2225

Please sign in to comment.