diff --git a/test/mocks/MockPermit2Forwarder.sol b/test/mocks/MockPermit2Forwarder.sol deleted file mode 100644 index 9c17f8b0..00000000 --- a/test/mocks/MockPermit2Forwarder.sol +++ /dev/null @@ -1,10 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0-or-later -pragma solidity ^0.8.20; - -import {IAllowanceTransfer} from "permit2/src/interfaces/IAllowanceTransfer.sol"; - -import {Permit2Forwarder} from "../../src/base/Permit2Forwarder.sol"; - -contract MockPermit2Forwarder is Permit2Forwarder { - constructor(IAllowanceTransfer _permit2) Permit2Forwarder(_permit2) {} -} diff --git a/test/position-managers/Permit2Forwarder.t.sol b/test/position-managers/Permit2Forwarder.t.sol index 025167ba..30f7bbac 100644 --- a/test/position-managers/Permit2Forwarder.t.sol +++ b/test/position-managers/Permit2Forwarder.t.sol @@ -9,10 +9,10 @@ import {IAllowanceTransfer} from "permit2/src/interfaces/IAllowanceTransfer.sol" import {PosmTestSetup} from "../shared/PosmTestSetup.sol"; import {Permit2SignatureHelpers} from "../shared/Permit2SignatureHelpers.sol"; -import {MockPermit2Forwarder} from "../mocks/MockPermit2Forwarder.sol"; +import {Permit2Forwarder} from "../../src/base/Permit2Forwarder.sol"; contract Permit2ForwarderTest is Test, PosmTestSetup, Permit2SignatureHelpers { - MockPermit2Forwarder permit2Forwarder; + Permit2Forwarder permit2Forwarder; uint160 amount0 = 10e18; // the expiration of the allowance is large @@ -29,7 +29,7 @@ contract Permit2ForwarderTest is Test, PosmTestSetup, Permit2SignatureHelpers { (currency0, currency1) = deployAndMint2Currencies(); // also deploys permit2 deployPosm(manager); - permit2Forwarder = new MockPermit2Forwarder(permit2); + permit2Forwarder = new Permit2Forwarder(permit2); PERMIT2_DOMAIN_SEPARATOR = permit2.DOMAIN_SEPARATOR(); alicePrivateKey = 0x12341234;