From b1b5904d992b5840efa73211707804dd690a01ed Mon Sep 17 00:00:00 2001 From: bennett Date: Mon, 11 Nov 2024 13:43:07 -0600 Subject: [PATCH] M-06 Incorrect Parameters Passed to permitWitnessTransferFrom Signed-off-by: bennett --- contracts/erc7683/ERC7683Across.sol | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contracts/erc7683/ERC7683Across.sol b/contracts/erc7683/ERC7683Across.sol index 3ee47b8b..81f04864 100644 --- a/contracts/erc7683/ERC7683Across.sol +++ b/contracts/erc7683/ERC7683Across.sol @@ -67,7 +67,7 @@ library ERC7683Permit2Lib { string internal constant PERMIT2_ORDER_TYPE = string( abi.encodePacked( - "CrossChainOrder witness)", + "GaslessCrossChainOrder witness)", ACROSS_ORDER_DATA_TYPE, CROSS_CHAIN_ORDER_TYPE, TOKEN_PERMISSIONS_TYPE @@ -86,6 +86,7 @@ library ERC7683Permit2Lib { order.originChainId, order.openDeadline, order.fillDeadline, + order.orderDataType, orderDataHash ) ); @@ -102,6 +103,7 @@ library ERC7683Permit2Lib { orderData.outputAmount, orderData.destinationChainId, orderData.recipient, + orderData.exclusiveRelayer, orderData.exclusivityPeriod, keccak256(orderData.message) )