diff --git a/contracts/extensions/Permit2WitnessProxy.sol b/contracts/extensions/Permit2WitnessProxy.sol index ab0566c6..e67ab96c 100644 --- a/contracts/extensions/Permit2WitnessProxy.sol +++ b/contracts/extensions/Permit2WitnessProxy.sol @@ -4,7 +4,7 @@ pragma solidity 0.8.23; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; -import "../interfaces/IPermit2.sol"; +import "../interfaces/IPermit2WitnessTransferFrom.sol"; import "./ImmutableOwner.sol"; /* solhint-disable func-name-mixedcase */ @@ -19,7 +19,7 @@ contract Permit2WitnessProxy is ImmutableOwner { string private constant _WITNESS_TYPE_STRING = "Witness witness)TokenPermissions(address token,uint256 amount)Witness(bytes32 salt)"; - IPermit2 private constant _PERMIT2 = IPermit2(0x000000000022D473030F116dDEE9F6B43aC78BA3); + IPermit2WitnessTransferFrom private constant _PERMIT2 = IPermit2WitnessTransferFrom(0x000000000022D473030F116dDEE9F6B43aC78BA3); constructor(address _immutableOwner) ImmutableOwner(_immutableOwner) { if (Permit2WitnessProxy.func_801zDya.selector != IERC20.transferFrom.selector) revert Permit2WitnessProxyBadSelector(); @@ -31,13 +31,13 @@ contract Permit2WitnessProxy is ImmutableOwner { address from, address to, uint256 amount, - IPermit2.PermitTransferFrom calldata permit, + IPermit2WitnessTransferFrom.PermitTransferFrom calldata permit, bytes32 witness, bytes calldata sig ) external onlyImmutableOwner { _PERMIT2.permitWitnessTransferFrom( permit, - IPermit2.SignatureTransferDetails({ + IPermit2WitnessTransferFrom.SignatureTransferDetails({ to: to, requestedAmount: amount }), diff --git a/contracts/interfaces/IPermit2.sol b/contracts/interfaces/IPermit2WitnessTransferFrom.sol similarity index 95% rename from contracts/interfaces/IPermit2.sol rename to contracts/interfaces/IPermit2WitnessTransferFrom.sol index d4874b19..1b973b64 100644 --- a/contracts/interfaces/IPermit2.sol +++ b/contracts/interfaces/IPermit2WitnessTransferFrom.sol @@ -2,7 +2,7 @@ pragma solidity ^0.8.0; -interface IPermit2 { +interface IPermit2WitnessTransferFrom { struct TokenPermissions { // ERC20 token address address token;