From b0cd19ab779a8044d97ecdd1efd7195fcdbcd120 Mon Sep 17 00:00:00 2001 From: Alan Wu <60207036+alanhwu@users.noreply.github.com> Date: Sat, 28 Sep 2024 15:16:52 -0500 Subject: [PATCH] fix: 712 ordering on ORDER_TYPE (#279) --- src/lib/V3DutchOrderLib.sol | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/V3DutchOrderLib.sol b/src/lib/V3DutchOrderLib.sol index 316aba09..41798218 100644 --- a/src/lib/V3DutchOrderLib.sol +++ b/src/lib/V3DutchOrderLib.sol @@ -111,11 +111,11 @@ library V3DutchOrderLib { bytes32 internal constant NON_LINEAR_DECAY_TYPE_HASH = keccak256(NON_LINEAR_DECAY_TYPE); bytes internal constant ORDER_TYPE = abi.encodePacked( + V3_DUTCH_ORDER_TYPE, NON_LINEAR_DECAY_TYPE, + OrderInfoLib.ORDER_INFO_TYPE, V3_DUTCH_INPUT_TYPE, - V3_DUTCH_ORDER_TYPE, - V3_DUTCH_OUTPUT_TYPE, - OrderInfoLib.ORDER_INFO_TYPE + V3_DUTCH_OUTPUT_TYPE ); bytes32 internal constant ORDER_TYPE_HASH = keccak256(ORDER_TYPE);