Skip to content

Commit

Permalink
assign the order hash a bit later
Browse files Browse the repository at this point in the history
  • Loading branch information
0age committed Feb 10, 2024
1 parent 346094d commit 33a9915
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/lib/OrderFulfiller.sol
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ contract OrderFulfiller is

// Declare empty bytes32 array and populate with the order hash.
bytes32[] memory orderHashes = new bytes32[](1);
orderHashes[0] = orderHash;

if (advancedOrder.parameters.orderType != OrderType.CONTRACT) {
_assertRestrictedAdvancedOrderAuthorization(
Expand Down Expand Up @@ -195,6 +194,8 @@ contract OrderFulfiller is

_transferEach(orderParameters, fulfillerConduitKey);

orderHashes[0] = orderHash;

// Ensure restricted orders have a valid submitter or pass a zone check.
_assertRestrictedAdvancedOrderValidity(
advancedOrders[0], orderHashes, orderHash
Expand Down

0 comments on commit 33a9915

Please sign in to comment.