Skip to content

Commit

Permalink
defer state write until after authorizeOrder call on basic
Browse files Browse the repository at this point in the history
  • Loading branch information
0age committed Feb 3, 2024
1 parent 8f3e1cd commit 4335bd0
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions reference/lib/ReferenceBasicOrderFulfiller.sol
Original file line number Diff line number Diff line change
Expand Up @@ -345,15 +345,6 @@ contract ReferenceBasicOrderFulfiller is ReferenceOrderValidator {
offeredItemType
);

// Determine whether order is restricted and, if so, that it is valid.
_assertRestrictedBasicOrderAuthorization(
orderHash,
orderType,
parameters,
offeredItemType,
receivedItemType
);

// Determine conduitKey argument used by transfer functions.
bytes32 conduitKey;
if (
Expand Down Expand Up @@ -824,6 +815,15 @@ contract ReferenceBasicOrderFulfiller is ReferenceOrderValidator {
);
}

// Determine whether order is restricted and, if so, that it is valid.
_assertRestrictedBasicOrderAuthorization(
hashes.orderHash,
orderType,
parameters,
offeredItemType,
receivedItemType
);

// Verify and update the status of the derived order.
_validateBasicOrderAndUpdateStatus(
hashes.orderHash,
Expand Down

0 comments on commit 4335bd0

Please sign in to comment.